Revert 415fa612
authorYao Qi <yao.qi@linaro.org>
Mon, 18 Apr 2016 07:50:09 +0000 (08:50 +0100)
committerYao Qi <yao.qi@linaro.org>
Mon, 18 Apr 2016 07:50:09 +0000 (08:50 +0100)
2016-04-18  Yao Qi  <yao.qi@linaro.org>

Revert:
2016-04-15  Yao Qi  <yao.qi@linaro.org>

* arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
PC is far from the end of function.

gdb/ChangeLog
gdb/arm-tdep.c

index bafbbe6..daf86d9 100644 (file)
@@ -1,3 +1,11 @@
+2016-04-18  Yao Qi  <yao.qi@linaro.org>
+
+       Revert:
+       2016-04-15  Yao Qi  <yao.qi@linaro.org>
+
+       * arm-tdep.c (thumb_stack_frame_destroyed_p): Return zero if
+       PC is far from the end of function.
+
 2016-04-16  Pedro Alves  <palves@redhat.com>
 
        * ada-exp.y (yydefred): Define as ada_yydefred.
index 36b0bcd..0412f71 100644 (file)
@@ -3135,14 +3135,6 @@ thumb_stack_frame_destroyed_p (struct gdbarch *gdbarch, CORE_ADDR pc)
   if (!find_pc_partial_function (pc, NULL, &func_start, &func_end))
     return 0;
 
-  if (func_end - pc > 4 * 4)
-    {
-      /* There shouldn't be more than four instructions in epilogue.
-        If PC is still 16 bytes away from FUNC_END, it isn't in
-        epilogue.  */
-      return 0;
-    }
-
   /* The epilogue is a sequence of instructions along the following lines:
 
     - add stack frame size to SP or FP