aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-09-20 12:08:37 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-09-20 12:08:37 +0000
commit6d305052679525c19163606e9968d8c67b2ca4f2 (patch)
tree23c3c9004bae65583d656f0d89bd63aeb2910dc0
parentc7749bd6ecebecdfe24942bc12ff82795a6247db (diff)
downloadgdb-6d305052679525c19163606e9968d8c67b2ca4f2.zip
gdb-6d305052679525c19163606e9968d8c67b2ca4f2.tar.gz
gdb-6d305052679525c19163606e9968d8c67b2ca4f2.tar.bz2
* h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
multiple register push instruction.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/h8300-tdep.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c4872a5..233bf27 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-20 Corinna Vinschen <vinschen@redhat.com>
+
+ * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
+ multiple register push instruction.
+
2002-09-19 Jim Blandy <jimb@redhat.com>
Add support for distinct host and target character sets.
diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c
index 52f91c0..8e1ac81 100644
--- a/gdb/h8300-tdep.c
+++ b/gdb/h8300-tdep.c
@@ -429,7 +429,7 @@ h8300_examine_prologue (register CORE_ADDR ip, register CORE_ADDR limit,
next_ip = h8300_next_prologue_insn (ip, limit, &insn_word);
start = insn_word & 0x7;
- for (i = start; i <= start + count; i++)
+ for (i = start; i < start + count; i++)
{
fsr[i] = after_prolog_fp + auto_depth;
auto_depth += 4;