diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-06-10 13:22:07 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-06-10 13:22:07 +0000 |
commit | 30a4a8e027d143cca1ac159277d0652c1ed978e9 (patch) | |
tree | 27210bddbd24de6dd9c231adf2edba2e7d245cbd /gdb/sh64-tdep.c | |
parent | 888fea3c764c805e4b7ffe8fe2f483e1a3fe4819 (diff) | |
download | gdb-30a4a8e027d143cca1ac159277d0652c1ed978e9.zip gdb-30a4a8e027d143cca1ac159277d0652c1ed978e9.tar.gz gdb-30a4a8e027d143cca1ac159277d0652c1ed978e9.tar.bz2 |
2004-06-10 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
* gdbarch.h, gdbarch.c: Re-generate.
* frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
parameters.
* dummy-frame.c (deprecated_pc_in_call_dummy): Update.
* arm-tdep.c (arm_pc_is_thumb_dummy): Call
deprecated_pc_in_call_dummy instead of
DEPRECATED_PC_IN_CALL_DUMMY.
(arm_skip_prologue): Ditto.
* xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
(xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
* v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
(v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
Ditto.
* sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
(sh64_init_extra_frame_info, sh64_get_saved_register)
(sh64_pop_frame): Ditto.
* mips-tdep.c (non_heuristic_proc_desc): Ditto.
* mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
(mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
* h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
(h8300_pop_frame): Ditto.
* blockframe.c (legacy_inside_entry_func)
(legacy_frame_chain_valid): Ditto.
* frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
to deprecated_pc_in_call_dummy.
Diffstat (limited to 'gdb/sh64-tdep.c')
-rw-r--r-- | gdb/sh64-tdep.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c index f1dc7b4..217422e 100644 --- a/gdb/sh64-tdep.c +++ b/gdb/sh64-tdep.c @@ -736,9 +736,7 @@ translate_insn_rn (int rn, int media_mode) static CORE_ADDR sh64_frame_chain (struct frame_info *frame) { - if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (frame), - get_frame_base (frame), - get_frame_base (frame))) + if (deprecated_pc_in_call_dummy (get_frame_pc (frame))) return get_frame_base (frame); /* dummy frame same as caller's frame */ if (get_frame_pc (frame)) { @@ -764,8 +762,7 @@ sh64_get_saved_pr (struct frame_info *fi, int pr_regnum) int media_mode = 0; for (; fi; fi = get_next_frame (fi)) - if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), get_frame_base (fi), - get_frame_base (fi))) + if (deprecated_pc_in_call_dummy (get_frame_pc (fi))) /* When the caller requests PR from the dummy frame, we return PC because that's where the previous routine appears to have done a call from. */ @@ -1214,8 +1211,7 @@ sh64_init_extra_frame_info (int fromleaf, struct frame_info *fi) if (get_next_frame (fi)) deprecated_update_frame_pc_hack (fi, DEPRECATED_FRAME_SAVED_PC (get_next_frame (fi))); - if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), get_frame_base (fi), - get_frame_base (fi))) + if (deprecated_pc_in_call_dummy (get_frame_pc (fi))) { /* We need to setup fi->frame here because call_function_by_hand gets it wrong by assuming it's always FP. */ @@ -1272,9 +1268,7 @@ sh64_get_saved_register (char *raw_buffer, int *optimized, CORE_ADDR *addrp, while (frame && ((frame = get_next_frame (frame)) != NULL)) { - if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (frame), - get_frame_base (frame), - get_frame_base (frame))) + if (deprecated_pc_in_call_dummy (get_frame_pc (frame))) { if (lval) /* found it in a CALL_DUMMY frame */ *lval = not_lval; @@ -1369,9 +1363,7 @@ sh64_pop_frame (void) int media_mode = pc_is_isa32 (get_frame_pc (frame)); - if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (frame), - get_frame_base (frame), - get_frame_base (frame))) + if (deprecated_pc_in_call_dummy (get_frame_pc (frame))) deprecated_pop_dummy_frame (); else { |