diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-05-08 19:03:05 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-05-08 19:03:05 +0000 |
commit | 4d4aefc09f72c454d9894f5358107c0acc5c8a47 (patch) | |
tree | 39430024740383c917b9a743f268b303e379401c /gdb/frame.c | |
parent | fe453dde5cffcb35719cc34a0be7b56c400f50c0 (diff) | |
download | gdb-4d4aefc09f72c454d9894f5358107c0acc5c8a47.tar.gz |
2004-05-08 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
* gdbarch.h, gdbarch.c: Re-generate.
* blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
* infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
* frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index bc55484fbca..f3e94c90d23 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1062,8 +1062,9 @@ const struct frame_unwind *legacy_saved_regs_unwind = &legacy_saved_regs_unwinde static enum frame_type frame_type_from_pc (CORE_ADDR pc) { - if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES - && deprecated_pc_in_call_dummy (pc, 0, 0)) + /* NOTE: cagney/2004-05-08: Eliminating this function depends on all + architectures being forced to use the frame-unwind code. */ + if (deprecated_pc_in_call_dummy (pc, 0, 0)) return DUMMY_FRAME; else return NORMAL_FRAME; @@ -1581,8 +1582,7 @@ legacy_get_prev_frame (struct frame_info *this_frame) has previously set it. This is really somewhat bogus. The 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 (get_frame_pc (prev), 0, 0)) + if (deprecated_pc_in_call_dummy (get_frame_pc (prev), 0, 0)) prev->type = DUMMY_FRAME; if (prev->type == NORMAL_FRAME) |