mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
PR gdb/12659:
* infcmd.c (registers_info): Print just the current register's name. gdb/testsuite * gdb.base/pc-fp.exp: Add "info register" tests.
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user