aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-07-28 15:34:02 +0000
committerAndrew Cagney <cagney@redhat.com>2003-07-28 15:34:02 +0000
commit9d664d2eec1fb7ac11a0b3bc518d8c79d2aee6e5 (patch)
tree0bb09c669f0bc64b8000224a175750d45611d5d9
parente99f3b9ea3657624ddd37957e81f000e6e250f20 (diff)
downloadgdb-9d664d2eec1fb7ac11a0b3bc518d8c79d2aee6e5.zip
gdb-9d664d2eec1fb7ac11a0b3bc518d8c79d2aee6e5.tar.gz
gdb-9d664d2eec1fb7ac11a0b3bc518d8c79d2aee6e5.tar.bz2
2003-07-28 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (print_gp_register_row): Print the GPR's register MOD NUM_REGS.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mips-tdep.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 611ff9d..361066b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-28 Andrew Cagney <cagney@redhat.com>
+
+ * mips-tdep.c (print_gp_register_row): Print the GPR's register
+ MOD NUM_REGS.
+
2003-07-28 Daniel Jacobowitz <drow@mvista.com>
* thread.c (info_threads_command): Use get_selected_frame ().
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index fc1c248..d1d2e38 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -4286,10 +4286,10 @@ print_gp_register_row (struct ui_file *file, struct frame_info *frame,
col++;
}
/* print the R0 to R31 names */
- fprintf_filtered (file,
- (start_regnum % NUM_REGS) < MIPS_NUMREGS
- ? "\n R%-4d" : "\n ",
- start_regnum);
+ if ((start_regnum % NUM_REGS) < MIPS_NUMREGS)
+ fprintf_filtered (file, "\n R%-4d", start_regnum % NUM_REGS);
+ else
+ fprintf_filtered (file, "\n ");
/* now print the values in hex, 4 or 8 to the row */
for (col = 0, regnum = start_regnum;