From 6d305052679525c19163606e9968d8c67b2ca4f2 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 20 Sep 2002 12:08:37 +0000 Subject: [PATCH] * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in multiple register push instruction. --- gdb/ChangeLog | 5 +++++ gdb/h8300-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c4872a5b88b..233bf27b064 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-09-20 Corinna Vinschen + + * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in + multiple register push instruction. + 2002-09-19 Jim Blandy Add support for distinct host and target character sets. diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c index 52f91c0056d..8e1ac8108fa 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; -- 2.30.2