This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] h8300-tdep.c: Fix a loop


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]