From: Andrew Cagney Date: Mon, 28 Jul 2003 15:31:08 +0000 (+0000) Subject: 2003-07-28 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=20e6603c81d023ee57bef42b5f1080d379c0325f;p=binutils-gdb.git 2003-07-28 Andrew Cagney * mips-tdep.c (print_gp_register_row): Print the GPR's register MOD NUM_REGS. --- 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 + + * mips-tdep.c (print_gp_register_row): Print the GPR's register + MOD NUM_REGS. + 2003-07-28 Daniel Jacobowitz * 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;