+2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
+
+ * user-regs.c (maintenance_print_user_registers): Swap "Nr" and
+ "Name" columns. Assure that the output is always indented.
+
2014-12-16 Joel Brobecker <brobecker@adacore.com>
* nat/linux-ptrace.h (PTRACE_O_EXITKILL): Define if not
+2014-12-16 Andreas Arnez <arnez@vnet.linux.ibm.com>
+
+ * gdb.base/completion.exp: Adjust to format changes of "maint
+ print user-registers".
+
2014-12-16 Catalin Udma <catalin.udma@freescale.com>
PR server/17457
append regs_output "\n"
append regs_output [capture_command_output "mt print reggroups" \
".*Group.*Type\[^\n]*\n"]
+append regs_output "\n"
+append regs_output [capture_command_output "mt print user-registers" \
+ ".*Name.*Nr\[^\n]*\n"]
set all_regs {}
foreach {- reg} [regexp -all -inline -line {^\s+(\w+)} $regs_output] {
lappend all_regs $reg
}
-set regs_output [capture_command_output "mt print user-registers" \
- ".*Nr.*Name\[^\n]*\n"]
-foreach {- reg} [regexp -all -inline -line {^\s+\d+\s+(\w+)} $regs_output] {
- lappend all_regs $reg
-}
-
set all_regs [join [lsort -unique $all_regs]]
# ... and then compare them to the completion of "info registers".
regs = gdbarch_data (gdbarch, user_regs_data);
regnum = gdbarch_num_regs (gdbarch) + gdbarch_num_pseudo_regs (gdbarch);
- fprintf_unfiltered (gdb_stdout, " Nr Name\n");
+ fprintf_unfiltered (gdb_stdout, " %-11s %3s\n", "Name", "Nr");
for (reg = regs->first; reg != NULL; reg = reg->next, ++regnum)
- fprintf_unfiltered (gdb_stdout, "%3d %s\n", regnum, reg->name);
+ fprintf_unfiltered (gdb_stdout, " %-11s %3d\n", reg->name, regnum);
}
extern initialize_file_ftype _initialize_user_regs; /* -Wmissing-prototypes */