This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Delete HAVE_REGISTER_WINDOWS macro
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 21 Apr 2002 11:36:24 -0400
- Subject: [patch] Delete HAVE_REGISTER_WINDOWS macro
No longer used! Ya.
Committed,
Andrew
2002-04-21 Andrew Cagney <ac131313@redhat.com>
* 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.
Index: doc/ChangeLog
2002-04-21 Andrew Cagney <ac131313@redhat.com>
* gdbint.texinfo (Target Architecture Definition): Delete
definition of HAVE_REGISTER_WINDOWS.
Index: frame.c
===================================================================
RCS file: /cvs/src/src/gdb/frame.c,v
retrieving revision 1.8
diff -u -r1.8 frame.c
--- frame.c 20 Apr 2002 23:54:28 -0000 1.8
+++ frame.c 21 Apr 2002 15:29:17 -0000
@@ -43,39 +43,6 @@
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
Index: config/i960/tm-i960.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i960/tm-i960.h,v
retrieving revision 1.9
diff -u -r1.9 tm-i960.h
--- config/i960/tm-i960.h 21 Apr 2002 15:19:06 -0000 1.9
+++ config/i960/tm-i960.h 21 Apr 2002 15:29:24 -0000
@@ -116,8 +116,6 @@
/* The i960 has register windows, sort of. */
-#define HAVE_REGISTER_WINDOWS
-
extern void i960_get_saved_register (char *raw_buffer,
int *optimized,
CORE_ADDR *addrp,
Index: config/sparc/tm-sparc.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/tm-sparc.h,v
retrieving revision 1.12
diff -u -r1.12 tm-sparc.h
--- config/sparc/tm-sparc.h 29 Jan 2002 04:42:44 -0000 1.12
+++ config/sparc/tm-sparc.h 21 Apr 2002 15:29:31 -0000
@@ -468,9 +468,8 @@
/* time of the register saves. */ \
int sp_offset;
-/* We need to override GET_SAVED_REGISTER so that we can deal with the way
- outs change into ins in different frames. HAVE_REGISTER_WINDOWS can't
- deal with this case and also handle flat frames at the same time. */
+/* We need to override GET_SAVED_REGISTER so that we can deal with the
+ way outs change into ins in different frames. */
void sparc_get_saved_register (char *raw_buffer,
int *optimized,
Index: doc/gdbint.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdbint.texinfo,v
retrieving revision 1.76
diff -u -r1.76 gdbint.texinfo
--- doc/gdbint.texinfo 19 Apr 2002 19:33:57 -0000 1.76
+++ doc/gdbint.texinfo 21 Apr 2002 15:30:42 -0000
@@ -3044,10 +3044,6 @@
Define this if you need to supply your own definition for the function
@code{get_saved_register}.
-@item HAVE_REGISTER_WINDOWS
-@findex HAVE_REGISTER_WINDOWS
-Define this if the target has register windows.
-
@item REGISTER_IN_WINDOW_P (@var{regnum})
@findex REGISTER_IN_WINDOW_P
Define this to be an expression that is 1 if the given register is in