summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog.csl5
-rw-r--r--gdb/mt-tdep.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog.csl b/ChangeLog.csl
index 684d3d10c97..655a71cc44e 100644
--- a/ChangeLog.csl
+++ b/ChangeLog.csl
@@ -1,3 +1,8 @@
+2006-04-28 Mark Mitchell <mark@codesourcery.com>
+
+ * gdb/mt-tdep.c (mt_register_name): Correct out-of-range logic to
+ include additional registers.
+
2006-04-28 Richard Sandiford <richard@codesourcery.com>
* gdb/gdbserver/configure.srv (m68k*-*-linux*): Use reg-cf.o.
diff --git a/gdb/mt-tdep.c b/gdb/mt-tdep.c
index da77bd88f1d..e3115c37541 100644
--- a/gdb/mt-tdep.c
+++ b/gdb/mt-tdep.c
@@ -185,7 +185,7 @@ mt_register_name (int regnum)
if (index == MT_COPRO_PSEUDOREG_MAC_REGNUM)
stub = register_names[MT_MAC_PSEUDOREG_REGNUM];
- else if (index > MT_QCHANNEL_REGNUM - MT_CPR0_REGNUM)
+ else if (index >= MT_NUM_REGS - MT_CPR0_REGNUM)
stub = "";
else
stub = register_names[index + MT_CPR0_REGNUM];