(sim_resume): Clarify use of SIGGNAL.
[deliverable/binutils-gdb.git] / gdb / arm-tdep.c
index c3e9b5d42bced97e893cc19a7126041e2b7cb428..725b07a52142fbee3f5b9aae6870d4871f581962 100644 (file)
@@ -270,9 +270,15 @@ int
 arm_pc_is_thumb_dummy (bfd_vma memaddr)
 {
   CORE_ADDR sp = read_sp ();
-  CORE_ADDR fp = read_fp ();
 
-  if (PC_IN_CALL_DUMMY (memaddr, sp, fp))
+  /* FIXME: Until we switch for the new call dummy macros, this heuristic
+     is the best we can do.  We are trying to determine if the pc is on
+     the stack, which (hopefully) will only happen in a call dummy.
+     We hope the current stack pointer is not so far alway from the dummy
+     frame location (true if we have not pushed large data structures or
+     gone too many levels deep) and that our 1024 is not enough to consider
+     code regions as part of the stack (true for most practical purposes) */
+  if (PC_IN_CALL_DUMMY (memaddr, sp, sp + 1024))
     return caller_is_thumb;
   else
     return 0;
This page took 0.023848 seconds and 4 git commands to generate.