Fix indentation of "maint print user-registers"
authorAndreas Arnez <arnez@vnet.linux.ibm.com>
Tue, 16 Dec 2014 15:06:42 +0000 (16:06 +0100)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Tue, 16 Dec 2014 15:06:42 +0000 (16:06 +0100)
commit25dda427ec9e074e0a258eb93c7cc811f0a85a9c
tree0617f7d4e2a0b71a35f685566710a61fed4309da
parent033539e2685156ad6ad60e5925bc61cef5ced483
Fix indentation of "maint print user-registers"

This fixes a failure of the test case "complete 'info registers '" in
completion.exp on architectures where the user registers have numbers
above 99.  In that case the output of "maint print user-registers" was
no longer indented, and the regexp in the test case failed to add them
to the list of expected completion results.  The fix also swaps the
columns "Name" and "Nr", such that the indentation is always the same,
and to be consistent with the output of "maint print registers".

gdb/ChangeLog:

* user-regs.c (maintenance_print_user_registers): Swap "Nr" and
"Name" columns.  Assure that the output is always indented.

gdb/testsuite/ChangeLog:

* gdb.base/completion.exp: Adjust to format changes of "maint
print user-registers".
gdb/ChangeLog
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/completion.exp
gdb/user-regs.c
This page took 0.026908 seconds and 4 git commands to generate.