From: Andrew Cagney Date: Sat, 1 May 2004 00:52:36 +0000 (+0000) Subject: 2004-04-30 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce12bbf9f92625b4c1a685538b9a18c914dfb471;p=binutils-gdb.git 2004-04-30 Andrew Cagney * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP. (legacy_get_prev_frame): Ditto. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7c0ae2ba9a7..94c212237a6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2004-04-30 Andrew Cagney + * 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. diff --git a/gdb/frame.c b/gdb/frame.c index b3c9c57c1b8..0db1473c9bd 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -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