aboutsummaryrefslogtreecommitdiff
path: root/gdb/frame.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-04-21 15:52:35 +0000
committerAndrew Cagney <cagney@redhat.com>2002-04-21 15:52:35 +0000
commitd49d1e0a2f67889077fff8ad80e9ed5e43ff169f (patch)
treeeecd97c4a1ad3caa63c66502184ae57ba2ca12d1 /gdb/frame.c
parent92e8c9ed1f61fea0ded3f84e9092375525fb5f5a (diff)
downloadfsf-binutils-gdb-d49d1e0a2f67889077fff8ad80e9ed5e43ff169f.zip
fsf-binutils-gdb-d49d1e0a2f67889077fff8ad80e9ed5e43ff169f.tar.gz
fsf-binutils-gdb-d49d1e0a2f67889077fff8ad80e9ed5e43ff169f.tar.bz2
* frame.c (find_saved_register): Delete #ifdef
HAVE_REGISTER_WINDOWS code. * config/sparc/tm-sparc.h: Update comments. * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro. * gdbint.texinfo (Target Architecture Definition): Delete definition of HAVE_REGISTER_WINDOWS.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r--gdb/frame.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gdb/frame.c b/gdb/frame.c
index 819ee2c..2753150 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -43,39 +43,6 @@ find_saved_register (struct frame_info *frame, int regnum)
if (frame == NULL) /* No regs saved if want current frame */
return 0;
-#ifdef HAVE_REGISTER_WINDOWS
- /* We assume that a register in a register window will only be saved
- in one place (since the name changes and/or disappears as you go
- towards inner frames), so we only call get_frame_saved_regs on
- the current frame. This is directly in contradiction to the
- usage below, which assumes that registers used in a frame must be
- saved in a lower (more interior) frame. This change is a result
- of working on a register window machine; get_frame_saved_regs
- always returns the registers saved within a frame, within the
- context (register namespace) of that frame. */
-
- /* However, note that we don't want this to return anything if
- nothing is saved (if there's a frame inside of this one). Also,
- callers to this routine asking for the stack pointer want the
- stack pointer saved for *this* frame; this is returned from the
- next frame. */
-
- if (REGISTER_IN_WINDOW_P (regnum))
- {
- frame1 = get_next_frame (frame);
- if (!frame1)
- return 0; /* Registers of this frame are active. */
-
- /* Get the SP from the next frame in; it will be this
- current frame. */
- if (regnum != SP_REGNUM)
- frame1 = frame;
-
- FRAME_INIT_SAVED_REGS (frame1);
- return frame1->saved_regs[regnum]; /* ... which might be zero */
- }
-#endif /* HAVE_REGISTER_WINDOWS */
-
/* Note that this next routine assumes that registers used in
frame x will be saved only in the frame that x calls and
frames interior to it. This is not true on the sparc, but the