From: Pierre Muller Date: Thu, 18 Nov 2010 16:38:20 +0000 (+0000) Subject: * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=77bc06753c1032077538a2500b0d228037e3718b;p=binutils-gdb.git * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP" instruction is found. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2e3144ae494..526c1828613 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-11-18 Pierre Muller + + * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP" + instruction is found. + 2010-11-17 Tom Tromey * value.c (value_entirely_optimized_out): Check the diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 7c24d306e2d..636c1de3bbc 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -2245,7 +2245,7 @@ arm_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR pc) found_stack_adjust = 1; else if ((insn & 0x0ffffff0) == 0x01a0d000) /* MOV SP. */ - found_return = 1; + found_stack_adjust = 1; else if ((insn & 0x0fff0000) == 0x08bd0000) /* POP (LDMIA). */ found_stack_adjust = 1;