From 5436df9582123e5b169ef0b5fcc338d4ee00cc35 Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Wed, 7 Dec 2011 00:17:23 +0000 Subject: [PATCH] * mips-tdep.c (mips32_scan_prologue): Only update the immediate load adjustment if still within the prologue. --- gdb/ChangeLog | 5 +++++ gdb/mips-tdep.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8c670869cf3..312ba18e778 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-12-07 Maciej W. Rozycki + + * mips-tdep.c (mips32_scan_prologue): Only update the immediate + load adjustment if still within the prologue. + 2011-12-06 Maciej W. Rozycki * mips-tdep.c (mips32_next_pc): Fix floating point condition diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index bbfd7e9e607..64b7629b12b 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 { -- 2.30.2