diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-03-01 00:50:56 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-03-01 00:50:56 +0000 |
commit | 3ce2bf1815f79e33ffbcebcf7da5f6896536f390 (patch) | |
tree | 42e1f5fb0fe6f2f28e1f99a2ee9d78d5f601e9ba /gdb/rs6000-tdep.c | |
parent | 312d3cb118c3caaa55b4ebd9aa2730e32e99aa8e (diff) | |
download | gdb-3ce2bf1815f79e33ffbcebcf7da5f6896536f390.zip gdb-3ce2bf1815f79e33ffbcebcf7da5f6896536f390.tar.gz gdb-3ce2bf1815f79e33ffbcebcf7da5f6896536f390.tar.bz2 |
2004-02-29 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
(rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
* config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
Delete macro.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index 5eef895..05eb442 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -211,6 +211,13 @@ rs6000_frame_init_saved_regs (struct frame_info *fi) } static CORE_ADDR +rs6000_init_frame_pc_first (int fromleaf, struct frame_info *prev) +{ + return (fromleaf ? DEPRECATED_SAVED_PC_AFTER_CALL (prev->next) + : prev->next ? DEPRECATED_FRAME_SAVED_PC (prev->next) : read_pc ()); +} + +static CORE_ADDR rs6000_frame_args_address (struct frame_info *fi) { struct frame_extra_info *extra_info = get_frame_extra_info (fi); @@ -2914,6 +2921,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_deprecated_frame_init_saved_regs (gdbarch, rs6000_frame_init_saved_regs); set_gdbarch_deprecated_init_extra_frame_info (gdbarch, rs6000_init_extra_frame_info); + set_gdbarch_deprecated_init_frame_pc_first (gdbarch, rs6000_init_frame_pc_first); if (!sysv_abi) { |