diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-12-06 19:26:06 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-12-06 19:26:06 +0000 |
commit | 2ca6c561875beb2a062b218f81ebf30e2dd7ec9c (patch) | |
tree | a385f9ec1b8ccdb0cd0c7422b6da2f30a4daafde /gdb/frame.c | |
parent | de46ecd713c0b4dbf5ef7a26b293aa6b11cf3635 (diff) | |
download | gdb-2ca6c561875beb2a062b218f81ebf30e2dd7ec9c.zip gdb-2ca6c561875beb2a062b218f81ebf30e2dd7ec9c.tar.gz gdb-2ca6c561875beb2a062b218f81ebf30e2dd7ec9c.tar.bz2 |
2002-12-06 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
provide a default value.
* gdbarch.h, gdbarch.c: Regenerate.
* frame.c (get_prev_frame): Update. Check
DEPRECATED_INIT_FRAME_PC_FIRST_P.
* s390-tdep.c (s390_gdbarch_init): Update.
* mips-tdep.c (mips_gdbarch_init): Update.
* config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
* config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
* alpha-tdep.c (alpha_gdbarch_init): Update.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index b4e2cfd..4e31c93 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -986,8 +986,9 @@ get_prev_frame (struct frame_info *next_frame) to require INIT_EXTRA_FRAME_INFO before they can do INIT_FRAME_PC. Phoo. - We shouldn't need INIT_FRAME_PC_FIRST to add more complication to - an already overcomplicated part of GDB. gnu@cygnus.com, 15Sep92. + 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 INIT_FRAME_PC after INIT_EXTRA_FRAME_INFO, one possible scheme: @@ -1040,7 +1041,8 @@ get_prev_frame (struct frame_info *next_frame) FRAME_SAVED_PC() is being superseed by frame_pc_unwind() and that function does have somewhere to cache that PC value. */ - INIT_FRAME_PC_FIRST (fromleaf, prev); + if (DEPRECATED_INIT_FRAME_PC_FIRST_P ()) + DEPRECATED_INIT_FRAME_PC_FIRST (fromleaf, prev); if (INIT_EXTRA_FRAME_INFO_P ()) INIT_EXTRA_FRAME_INFO (fromleaf, prev); |