diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-07-28 15:31:08 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-07-28 15:31:08 +0000 |
commit | 20e6603c81d023ee57bef42b5f1080d379c0325f (patch) | |
tree | 1982d6a8ca69b0be6fdb0024e7b3c79fda16110e /gdb | |
parent | 36c506c53667f31569471a46d914c860c89b8a9a (diff) | |
download | gdb-20e6603c81d023ee57bef42b5f1080d379c0325f.zip gdb-20e6603c81d023ee57bef42b5f1080d379c0325f.tar.gz gdb-20e6603c81d023ee57bef42b5f1080d379c0325f.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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 40a6a6a..9bb1533 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; |