diff options
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index e9e3e32..7d929df 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -2170,7 +2170,7 @@ registers_info (char *addr_exp, int fpregs) struct value_print_options opts; struct value *val = value_of_user_reg (regnum, frame); - printf_filtered ("%s: ", start); + printf_filtered ("%.*s: ", (int) (end - start), start); get_formatted_print_options (&opts, 'x'); val_print_scalar_formatted (check_typedef (value_type (val)), value_contents_for_printing (val), |