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/mips-tdep.c | |
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/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |