mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* mips-tdep.c (mips_register_name): Fix fencepost error involving
NUM_REGS bounds check.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2003-03-18 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* mips-tdep.c (mips_register_name): Fix fencepost error involving
|
||||
NUM_REGS bounds check.
|
||||
|
||||
2003-03-18 Kevin Buettner <kevinb@redhat.com>
|
||||
|
||||
* Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
|
||||
|
||||
@@ -402,7 +402,7 @@ mips_register_name (int regno)
|
||||
else
|
||||
return mips_gpr_names[regno];
|
||||
}
|
||||
else if (32 <= regno && regno <= NUM_REGS)
|
||||
else if (32 <= regno && regno < NUM_REGS)
|
||||
return mips_processor_reg_names[regno - 32];
|
||||
else
|
||||
internal_error (__FILE__, __LINE__,
|
||||
|
||||
Reference in New Issue
Block a user