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:
Tom Tromey
2012-02-15 19:13:14 +00:00
parent 29988831db
commit 3af2590d3e
4 changed files with 17 additions and 8 deletions

View File

@@ -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),