This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] h8300-tdep.c: Fix a loop
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 20 Sep 2002 14:18:24 +0200
- Subject: [PATCH] h8300-tdep.c: Fix a loop
- Reply-to: gdb-patches at sources dot redhat dot com
Hi,
I've applied the following patch to h8300-tdep.c as obvious.
Corinna
* h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
multiple register push instruction.
Index: h8300-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/h8300-tdep.c,v
retrieving revision 1.19
diff -u -p -r1.19 h8300-tdep.c
--- h8300-tdep.c 18 Sep 2002 22:17:41 -0000 1.19
+++ h8300-tdep.c 20 Sep 2002 12:07:56 -0000
@@ -429,7 +429,7 @@ h8300_examine_prologue (register CORE_AD
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;
--
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com