2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Mon, 25 Jun 2012 12:32:45 +0000 (12:32 +0000)
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Mon, 25 Jun 2012 12:32:45 +0000 (12:32 +0000)
* gdb/arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
register as a stack alignment in ARM mode.

gdb/ChangeLog
gdb/arm-tdep.c

index b8f8582b4887092d95f6f2d3a5af1dda11d18e67..fe013dee4b0815912a3d39c0efd9d54e9dca6900 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-25  Greta Yorsh  <greta.yorsh@arm.com>
+
+       * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
+       register as a stack alignment in ARM mode.
+
 2012-06-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
index df5dea73ea06829f302196be55b0d5587b4b3420..568ace59396b53c3dacdc26e3fcf9628bbe6dfd0 100644 (file)
@@ -3217,6 +3217,9 @@ arm_in_function_epilogue_p (struct gdbarch *gdbarch, CORE_ADDR pc)
       else if ((insn & 0x0fff0000) == 0x08bd0000)
        /* POP (LDMIA).  */
        found_stack_adjust = 1;
+      else if ((insn & 0x0fff0000) == 0x049d0000)
+       /* POP of a single register.  */
+       found_stack_adjust = 1;
     }
 
   if (found_stack_adjust)