diff options
author | Pedro Alves <palves@redhat.com> | 2019-09-17 17:03:28 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-10-01 15:12:38 -0600 |
commit | 6a831f06e1bdf3aff6acf7ae31e2a3a9795137a5 (patch) | |
tree | 316d0ef4b369a0635a9132de2b5e63cdc2a94131 /gdb/printcmd.c | |
parent | 2a3c1174c3c0db1140180fb3fc56ac324d1c0a7c (diff) | |
download | gdb-6a831f06e1bdf3aff6acf7ae31e2a3a9795137a5.zip gdb-6a831f06e1bdf3aff6acf7ae31e2a3a9795137a5.tar.gz gdb-6a831f06e1bdf3aff6acf7ae31e2a3a9795137a5.tar.bz2 |
Use new %p format suffixes in gdb
This changes various spots in gdb to use the new %p format suffixes.
gdb/ChangeLog
2019-10-01 Pedro Alves <palves@redhat.com>
Tom Tromey <tom@tromey.com>
* symtab.c (print_symbol_info): Use %ps.
(print_msymbol_info): Use %ps.
* symfile.c (symbol_file_add_with_addrs): Use %ps.
* printcmd.c (print_variable_and_value): Use %ps.
* macrocmd.c (show_pp_source_pos): Use %ps.
* infrun.c (print_exited_reason): Use ui_out::message.
* breakpoint.c (watchpoint_check, print_one_breakpoint_location)
(describe_other_breakpoints): Use ui_out::message and new
formats.
(say_where): Use new formats.
(bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
and new formats.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index b3f7b59..c17afe2 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2214,9 +2214,8 @@ print_variable_and_value (const char *name, struct symbol *var, if (!name) name = SYMBOL_PRINT_NAME (var); - fputs_filtered (n_spaces (2 * indent), stream); - fputs_styled (name, variable_name_style.style (), stream); - fputs_filtered (" = ", stream); + fprintf_filtered (stream, "%s%ps = ", n_spaces (2 * indent), + styled_string (variable_name_style.style (), name)); try { |