2004-04-30 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Sat, 1 May 2004 00:52:36 +0000 (00:52 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 1 May 2004 00:52:36 +0000 (00:52 +0000)
* frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
(legacy_get_prev_frame): Ditto.

gdb/ChangeLog
gdb/frame.c

index 7c0ae2b..94c2122 100644 (file)
@@ -1,5 +1,8 @@
 2004-04-30  Andrew Cagney  <cagney@redhat.com>
 
+       * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
+       (legacy_get_prev_frame): Ditto.
+
        * mips-tdep.c (mips_pc_in_sigtramp): Delete.
        (mips_gdbarch_init): Do not set pc_in_sigtramp.
        * mipsread.c (sigtramp_address): Delete extern variable.
index b3c9c57..0db1473 100644 (file)
@@ -1171,14 +1171,7 @@ frame_type_from_pc (CORE_ADDR pc)
       && deprecated_pc_in_call_dummy (pc, 0, 0))
     return DUMMY_FRAME;
   else
-    {
-      char *name;
-      find_pc_partial_function (pc, &name, NULL, NULL);
-      if (DEPRECATED_PC_IN_SIGTRAMP (pc, name))
-       return SIGTRAMP_FRAME;
-      else
-       return NORMAL_FRAME;
-    }
+    return NORMAL_FRAME;
 }
 
 /* Create an arbitrary (i.e. address specified by user) or innermost frame.
@@ -1697,25 +1690,6 @@ legacy_get_prev_frame (struct frame_info *this_frame)
   if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES
       && deprecated_pc_in_call_dummy (get_frame_pc (prev), 0, 0))
     prev->type = DUMMY_FRAME;
-  else
-    {
-      /* FIXME: cagney/2002-11-10: This should be moved to before the
-        INIT code above so that the INIT code knows what the frame's
-        type is (in fact, for a [generic] dummy-frame, the type can
-        be set and then the entire initialization can be skipped).
-        Unfortunately, it's the INIT code that sets the PC (Hmm, catch
-        22).  */
-      char *name;
-      find_pc_partial_function (get_frame_pc (prev), &name, NULL, NULL);
-      if (DEPRECATED_PC_IN_SIGTRAMP (get_frame_pc (prev), name))
-       prev->type = SIGTRAMP_FRAME;
-      /* FIXME: cagney/2002-11-11: Leave prev->type alone.  Some
-         architectures are forcing the frame's type in INIT so we
-         don't want to override it here.  Remember, NORMAL_FRAME == 0,
-         so it all works (just :-/).  Once this initialization is
-         moved to the start of this function, all this nastness will
-         go away.  */
-    }
 
   if (prev->type == NORMAL_FRAME)
     prev->this_id.value.code_addr