summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-07-28 15:31:08 +0000
committerAndrew Cagney <cagney@redhat.com>2003-07-28 15:31:08 +0000
commit20e6603c81d023ee57bef42b5f1080d379c0325f (patch)
tree1982d6a8ca69b0be6fdb0024e7b3c79fda16110e /gdb
parent36c506c53667f31569471a46d914c860c89b8a9a (diff)
downloadbinutils-gdb-20e6603c81d023ee57bef42b5f1080d379c0325f.tar.gz
2003-07-28 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (print_gp_register_row): Print the GPR's register MOD NUM_REGS.
Diffstat (limited to 'gdb')
-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 40a6a6a667a..9bb1533843d 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 fc1c2488537..d1d2e38b869 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;