aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-04-02 22:58:57 +0000
committerAndrew Cagney <cagney@redhat.com>2004-04-02 22:58:57 +0000
commit08be3abd6026bf04ed7226c2fea9c87e264928fd (patch)
treea39344a18f26aaa08fb7adbafe199428e03c00ef /gdb/frame.c
parentf04ceafa4372e3d55de774c953b6a52d56ffb4a7 (diff)
downloadgdb-08be3abd6026bf04ed7226c2fea9c87e264928fd.zip
gdb-08be3abd6026bf04ed7226c2fea9c87e264928fd.tar.gz
gdb-08be3abd6026bf04ed7226c2fea9c87e264928fd.tar.bz2
2004-04-02 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete. * gdbarch.h, gdbarch.c: Re-generate. * frame.c (legacy_get_prev_frame): Delete references to DEPRECATED_INIT_FRAME_PC_FIRST.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 1f45e8e..a323e03 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -1268,7 +1268,7 @@ reinit_frame_cache (void)
}
/* Create the previous frame using the deprecated methods
- INIT_EXTRA_INFO, INIT_FRAME_PC and INIT_FRAME_PC_FIRST. */
+ INIT_EXTRA_INFO, and INIT_FRAME_PC. */
static struct frame_info *
legacy_get_prev_frame (struct frame_info *this_frame)
@@ -1304,8 +1304,7 @@ legacy_get_prev_frame (struct frame_info *this_frame)
/* NOTE: cagney/2002-11-18: Should have been correctly setting the
frame's type here, before anything else, and not last, at the
bottom of this function. The various
- DEPRECATED_INIT_EXTRA_FRAME_INFO, DEPRECATED_INIT_FRAME_PC,
- DEPRECATED_INIT_FRAME_PC_FIRST and
+ DEPRECATED_INIT_EXTRA_FRAME_INFO, DEPRECATED_INIT_FRAME_PC, and
DEPRECATED_FRAME_INIT_SAVED_REGS methods are full of work-arounds
that handle the frame not being correctly set from the start.
Unfortunately those same work-arounds rely on the type defaulting
@@ -1563,10 +1562,6 @@ legacy_get_prev_frame (struct frame_info *this_frame)
machines appear to require DEPRECATED_INIT_EXTRA_FRAME_INFO
before they can do DEPRECATED_INIT_FRAME_PC. Phoo.
- We shouldn't need DEPRECATED_INIT_FRAME_PC_FIRST to add more
- complication to an already overcomplicated part of GDB.
- gnu@cygnus.com, 15Sep92.
-
Assuming that some machines need DEPRECATED_INIT_FRAME_PC after
DEPRECATED_INIT_EXTRA_FRAME_INFO, one possible scheme:
@@ -1622,11 +1617,6 @@ legacy_get_prev_frame (struct frame_info *this_frame)
frame_pc_unwind() and that function does have somewhere to cache
that PC value. */
- if (DEPRECATED_INIT_FRAME_PC_FIRST_P ())
- deprecated_update_frame_pc_hack (prev,
- DEPRECATED_INIT_FRAME_PC_FIRST (fromleaf,
- prev));
-
if (DEPRECATED_INIT_EXTRA_FRAME_INFO_P ())
DEPRECATED_INIT_EXTRA_FRAME_INFO (fromleaf, prev);
@@ -2322,7 +2312,6 @@ int
legacy_frame_p (struct gdbarch *current_gdbarch)
{
if (DEPRECATED_INIT_FRAME_PC_P ()
- || DEPRECATED_INIT_FRAME_PC_FIRST_P ()
|| DEPRECATED_INIT_EXTRA_FRAME_INFO_P ()
|| DEPRECATED_FRAME_CHAIN_P ())
/* No question, it's a legacy frame. */