aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2011-12-07 00:17:23 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2011-12-07 00:17:23 +0000
commit5436df9582123e5b169ef0b5fcc338d4ee00cc35 (patch)
treeea1b23fa494cf96a1180d5cfa3a1f28bae485ff1 /gdb/mips-tdep.c
parentc3cd48691afaa2390d312975aefae72cd13e3b72 (diff)
downloadgdb-5436df9582123e5b169ef0b5fcc338d4ee00cc35.zip
gdb-5436df9582123e5b169ef0b5fcc338d4ee00cc35.tar.gz
gdb-5436df9582123e5b169ef0b5fcc338d4ee00cc35.tar.bz2
* mips-tdep.c (mips32_scan_prologue): Only update the immediate
load adjustment if still within the prologue.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index bbfd7e9..64b7629 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -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
{