diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/printcmd.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d1b9b38..c7eeb1e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2020-12-17 Tom Tromey <tromey@adacore.com> + * printcmd.c (print_variable_and_value): Don't use n_spaces. + +2020-12-17 Tom Tromey <tromey@adacore.com> + * gdbtypes.c (print_args, dump_fn_fieldlists, print_cplus_stuff) (print_gnat_stuff, print_fixed_point_type_info) (recursive_dump_type): Update. diff --git a/gdb/printcmd.c b/gdb/printcmd.c index e95b880..de083a2 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2258,7 +2258,7 @@ print_variable_and_value (const char *name, struct symbol *var, if (!name) name = var->print_name (); - fprintf_filtered (stream, "%s%ps = ", n_spaces (2 * indent), + fprintf_filtered (stream, "%*s%ps = ", 2 * indent, "", styled_string (variable_name_style.style (), name)); try |