aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-03-22 15:36:47 +0000
committerAndrew Cagney <cagney@redhat.com>2004-03-22 15:36:47 +0000
commit90ba813f1fcbda33d35d1dac4fda91ce26eb12d8 (patch)
tree9149228a7f28ba140b9855077603b8aa11fff59f /gdb/frame.c
parent4b2b3b3e62d8c07591f5adfe1939409486ef6e33 (diff)
downloadgdb-90ba813f1fcbda33d35d1dac4fda91ce26eb12d8.zip
gdb-90ba813f1fcbda33d35d1dac4fda91ce26eb12d8.tar.gz
gdb-90ba813f1fcbda33d35d1dac4fda91ce26eb12d8.tar.bz2
2004-03-22 Andrew Cagney <cagney@redhat.com>
* frame.h (deprecated_pc_in_call_dummy): Rename generic_pc_in_call_dummy. * dummy-frame.h (pc_in_dummy_frame): Delete declaration. * dummy-frame.c (deprecated_pc_in_call_dummy): Rename generic_pc_in_call_dummy. (pc_in_dummy_frame): Make static. * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update. * gdbarch.h, gdbarch.c: Re-generate. * dummy-frame.c (dummy_frame_sniffer): Simplify. * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy. (legacy_get_prev_frame): Ditto. * inferior.h: Delete reference to generic_pc_in_call_dummy in comment.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 7df7c43..e5f4168 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -1154,12 +1154,8 @@ deprecated_generic_get_saved_register (char *raw_buffer, int *optimized,
static enum frame_type
frame_type_from_pc (CORE_ADDR pc)
{
- /* FIXME: cagney/2002-11-24: Can't yet directly call
- pc_in_dummy_frame() as some architectures don't set
- PC_IN_CALL_DUMMY() to generic_pc_in_call_dummy() (remember the
- latter is implemented by simply calling pc_in_dummy_frame). */
if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES
- && DEPRECATED_PC_IN_CALL_DUMMY (pc, 0, 0))
+ && deprecated_pc_in_call_dummy (pc, 0, 0))
return DUMMY_FRAME;
else
{
@@ -1688,9 +1684,7 @@ legacy_get_prev_frame (struct frame_info *this_frame)
initialization, as seen in create_new_frame(), should occur
before the INIT function has been called. */
if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES
- && (DEPRECATED_PC_IN_CALL_DUMMY_P ()
- ? DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (prev), 0, 0)
- : pc_in_dummy_frame (get_frame_pc (prev))))
+ && deprecated_pc_in_call_dummy (get_frame_pc (prev), 0, 0))
prev->type = DUMMY_FRAME;
else
{