diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-11-28 21:38:44 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-11-28 21:38:44 +0000 |
commit | 07555a72863c79f6146a10730ef9468e9f4abc7f (patch) | |
tree | bab2d57c6978fcc5d59b420917f0fef0063e9a20 /gdb/mips-tdep.c | |
parent | b99fa2d2956f35124e25b6399afc124041be9a93 (diff) | |
download | gdb-07555a72863c79f6146a10730ef9468e9f4abc7f.zip gdb-07555a72863c79f6146a10730ef9468e9f4abc7f.tar.gz gdb-07555a72863c79f6146a10730ef9468e9f4abc7f.tar.bz2 |
2002-11-28 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
USE_GENERIC_DUMMY_FRAMES.
* gdbarch.h, gdbarch.c: Regenerate.
* valops.c, frame.c: Update.
* config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
* config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
* config/pa/tm-hppa.h, blockframe.c: Update.
* vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
* m68k-tdep.c, alpha-tdep.c: Ditto.
* arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
* mips-tdep.c: Ditto.
Index: doc/ChangeLog
2002-11-28 Andrew Cagney <ac131313@redhat.com>
* gdbint.texinfo (Host Definition): Delete documentation on
USE_GENERIC_DUMMY_FRAMES.
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r-- | gdb/mips-tdep.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 320456e..f0a943d 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -1704,8 +1704,7 @@ mips_frame_saved_pc (struct frame_info *frame) int pcreg = (get_frame_type (frame) == SIGTRAMP_FRAME) ? PC_REGNUM : (proc_desc ? PROC_PC_REG (proc_desc) : RA_REGNUM); - if (USE_GENERIC_DUMMY_FRAMES - && PC_IN_CALL_DUMMY (frame->pc, 0, 0)) + if (PC_IN_CALL_DUMMY (frame->pc, 0, 0)) { LONGEST tmp; frame_unwind_signed_register (frame, PC_REGNUM, &tmp); @@ -2428,8 +2427,7 @@ mips_frame_chain (struct frame_info *frame) if ((tmp = SKIP_TRAMPOLINE_CODE (saved_pc)) != 0) saved_pc = tmp; - if (USE_GENERIC_DUMMY_FRAMES - && PC_IN_CALL_DUMMY (saved_pc, 0, 0)) + if (PC_IN_CALL_DUMMY (saved_pc, 0, 0)) { /* A dummy frame, uses SP not FP. Get the old SP value. If all is well, frame->frame the bottom of the current frame will @@ -2454,8 +2452,7 @@ mips_frame_chain (struct frame_info *frame) && !(get_frame_type (frame) == SIGTRAMP_FRAME) /* For a generic dummy frame, let get_frame_pointer() unwind a register value saved as part of the dummy frame call. */ - && !(USE_GENERIC_DUMMY_FRAMES - && PC_IN_CALL_DUMMY (frame->pc, 0, 0))) + && !(PC_IN_CALL_DUMMY (frame->pc, 0, 0))) return 0; else return get_frame_pointer (frame, proc_desc); @@ -2485,8 +2482,7 @@ mips_init_extra_frame_info (int fromleaf, struct frame_info *fci) if (fci->pc == PROC_LOW_ADDR (proc_desc) && !PROC_DESC_IS_DUMMY (proc_desc)) fci->frame = read_next_frame_reg (fci->next, SP_REGNUM); - else if (USE_GENERIC_DUMMY_FRAMES - && PC_IN_CALL_DUMMY (fci->pc, 0, 0)) + else if (PC_IN_CALL_DUMMY (fci->pc, 0, 0)) /* Do not ``fix'' fci->frame. It will have the value of the generic dummy frame's top-of-stack (since the draft fci->frame is obtained by returning the unwound stack @@ -3816,8 +3812,7 @@ mips_pop_frame (void) CORE_ADDR new_sp = get_frame_base (frame); mips_extra_func_info_t proc_desc = frame->extra_info->proc_desc; - if (USE_GENERIC_DUMMY_FRAMES - && PC_IN_CALL_DUMMY (frame->pc, 0, 0)) + if (PC_IN_CALL_DUMMY (frame->pc, 0, 0)) { generic_pop_dummy_frame (); flush_cached_frames (); |