* mips-tdep.c (mips32_scan_prologue): Only update the immediate
authorMaciej W. Rozycki <macro@linux-mips.org>
Wed, 7 Dec 2011 00:17:23 +0000 (00:17 +0000)
committerMaciej W. Rozycki <macro@linux-mips.org>
Wed, 7 Dec 2011 00:17:23 +0000 (00:17 +0000)
load adjustment if still within the prologue.

gdb/ChangeLog
gdb/mips-tdep.c

index 8c670869cf318af7928afbba22bf9ef4cbe1c2a6..312ba18e7783cf9ba90000c4e9278a2f408c2b30 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-07  Maciej W. Rozycki  <macro@codesourcery.com>
+
+       * mips-tdep.c (mips32_scan_prologue): Only update the immediate
+       load adjustment if still within the prologue.
+
 2011-12-06  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * mips-tdep.c (mips32_next_pc): Fix floating point condition
index bbfd7e9e607aa6914aefda04db8dde29f903147a..64b7629b12bc264221452cbc9cbfc5c51a822211 100644 (file)
@@ -2246,7 +2246,8 @@ restart:
                    || high_word == 0x3408 /* ori $t0,$zero,n */
                   ))
        {
-          load_immediate_bytes += MIPS_INSN32_SIZE;            /* FIXME!  */
+        if (end_prologue_addr == 0)
+          load_immediate_bytes += MIPS_INSN32_SIZE;            /* FIXME!  */
        }
       else
        {