summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2003-07-09 22:23:57 +0000
committerMichael Snyder <msnyder@specifix.com>2003-07-09 22:23:57 +0000
commite01ac585abf911e141e322c5b9a8986024e5a416 (patch)
tree73e5aaa747646cc891d10464dff8e62127764415
parent88460eb37b42fd6385730e213264a29e3b28b18d (diff)
downloadgdb-e01ac585abf911e141e322c5b9a8986024e5a416.tar.gz
2003-07-09 Michael Snyder <msnyder@redhat.com>
* sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/sh-tdep.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dba180c167e..faafc5da102 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-09 Michael Snyder <msnyder@redhat.com>
+
+ * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
+
2003-07-09 Mark Kettenis <kettenis@gnu.org>
* x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index 655aaaa0367..5553f612c39 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -4285,7 +4285,7 @@ sh_dsp_register_sim_regno (int nr)
{
if (legacy_register_sim_regno (nr) < 0)
return legacy_register_sim_regno (nr);
- if (nr >= DSP_DSR_REGNUM && nr < DSP_Y1_REGNUM)
+ if (nr >= DSP_DSR_REGNUM && nr <= DSP_Y1_REGNUM)
return nr - DSP_DSR_REGNUM + SIM_SH_DSR_REGNUM;
if (nr == DSP_MOD_REGNUM)
return SIM_SH_MOD_REGNUM;