X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fpython%2Fpy-prettyprint.c;h=a4df48fe19ab08ae3e4f02efa99769cdd2065443;hb=7f6aba03b929d3d893378760eeeca431005fc5cd;hp=fdc520d84432a8bee1cfc59901176ab10914848e;hpb=14309bb6bfe31e5ad26035cd41a46bdbaec154b0;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/python/py-prettyprint.c b/gdb/python/py-prettyprint.c index fdc520d844..a4df48fe19 100644 --- a/gdb/python/py-prettyprint.c +++ b/gdb/python/py-prettyprint.c @@ -25,6 +25,7 @@ #include "extension-priv.h" #include "python.h" #include "python-internal.h" +#include "cli/cli-style.h" /* Return type of print_string_repr. */ @@ -259,10 +260,11 @@ print_stack_unless_memory_error (struct ui_file *stream) gdb::unique_xmalloc_ptr msg = fetched_error.to_string (); if (msg == NULL || *msg == '\0') - fprintf_filtered (stream, _("")); + fprintf_styled (stream, metadata_style.style (), + _("")); else - fprintf_filtered (stream, _(""), - msg.get ()); + fprintf_styled (stream, metadata_style.style (), + _(""), msg.get ()); } else gdbpy_print_stack ();