diff options
author | Pierre Muller <muller@sourceware.org> | 2010-11-18 16:38:20 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-11-18 16:38:20 +0000 |
commit | 77bc06753c1032077538a2500b0d228037e3718b (patch) | |
tree | 262a900f6946c7fe9c8635c7e22c8871b3dc80ec /gdb | |
parent | 69b70cfe69b1d8ee430e1e50a20b4da9fe026d15 (diff) | |
download | gdb-77bc06753c1032077538a2500b0d228037e3718b.zip gdb-77bc06753c1032077538a2500b0d228037e3718b.tar.gz gdb-77bc06753c1032077538a2500b0d228037e3718b.tar.bz2 |
* arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
instruction is found.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/arm-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2e3144a..526c182 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-11-18 Pierre Muller <muller@ics.u-strasbg.fr> + + * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP" + instruction is found. + 2010-11-17 Tom Tromey <tromey@redhat.com> * value.c (value_entirely_optimized_out): Check the diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 7c24d30..636c1de 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; |