diff options
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 5e9c8a5..b9b6a3b 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -1254,7 +1254,9 @@ print_value (value *val, const value_print_options &opts) annotate_value_history_begin (histindex, val->type ()); - gdb_printf ("$%d = ", histindex); + std::string idx = string_printf ("$%d", histindex); + gdb_printf ("%ps = ", styled_string (variable_name_style.style (), + idx.c_str ())); annotate_value_history_value (); |