[RFC,8/8] Style the "Reading symbols" message
Commit Message
The "Reading symbols" message does not use ui-out (perhaps it
should?), so this styles it using the low-level API.
---
gdb/symfile.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
@@ -58,6 +58,7 @@
#include "cli/cli-utils.h"
#include "common/byte-vector.h"
#include "selftest.h"
+#include "cli/cli-style.h"
#include <sys/types.h>
#include <fcntl.h>
@@ -1111,7 +1112,11 @@ symbol_file_add_with_addrs (bfd *abfd, const char *name,
deprecated_pre_add_symbol_hook (name);
else
{
- printf_unfiltered (_("Reading symbols from %s..."), name);
+ puts_unfiltered (_("Reading symbols from "));
+ set_output_style (gdb_stdout, file_name_style.style ());
+ puts_unfiltered (name);
+ set_output_style (gdb_stdout, ui_file_style ());
+ puts_unfiltered ("...");
wrap_here ("");
gdb_flush (gdb_stdout);
}