This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Move KERNEL_U_ADDR to nm (not so easy cases)
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 29 Jul 2004 16:55:58 -0400
- Subject: [commit] Move KERNEL_U_ADDR to nm (not so easy cases)
Hello,
This moves the remaining KERNEL_U_ADDR definitions to the NM file. I've
a bit of paper tracing the path xm -> #include -> .mh -> #include -> nm
to determine where things should be moved if anyone is interested.
committed,
Andrew
2004-07-29 Andrew Cagney <cagney@gnu.org>
* config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
* config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
* config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
* config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
* config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
* config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
Index: config/i386/nm-i386v.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386v.h,v
retrieving revision 1.6
diff -p -u -r1.6 nm-i386v.h
--- config/i386/nm-i386v.h 18 Aug 2002 22:17:57 -0000 1.6
+++ config/i386/nm-i386v.h 29 Jul 2004 20:52:37 -0000
@@ -32,7 +32,10 @@
#define REGISTER_U_ADDR(addr, blockend, regnum) \
(addr) = register_u_addr ((blockend), (regnum))
extern CORE_ADDR register_u_addr (CORE_ADDR blockend, int regnum);
-
+
+/* This is the amount to subtract from u.u_ar0
+ to get the offset in the core file of the register values. */
+#define KERNEL_U_ADDR 0xe0000000
/* Number of traps that happen between exec'ing the shell to run an
inferior, and when we finally get to the inferior code. This is 2
Index: config/i386/nm-i386v4.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386v4.h,v
retrieving revision 1.3
diff -p -u -r1.3 nm-i386v4.h
--- config/i386/nm-i386v4.h 5 Jun 2002 19:18:19 -0000 1.3
+++ config/i386/nm-i386v4.h 29 Jul 2004 20:52:37 -0000
@@ -24,3 +24,7 @@
/* Poll causes GDB to hang, at least under Unixware 1.1.2. */
#define LOSING_POLL
+
+/* This is the amount to subtract from u.u_ar0
+ to get the offset in the core file of the register values. */
+#define KERNEL_U_ADDR 0xe0000000
Index: config/i386/nm-i386v42mp.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386v42mp.h,v
retrieving revision 1.4
diff -p -u -r1.4 nm-i386v42mp.h
--- config/i386/nm-i386v42mp.h 8 Nov 2002 21:00:47 -0000 1.4
+++ config/i386/nm-i386v42mp.h 29 Jul 2004 20:52:37 -0000
@@ -89,4 +89,8 @@
/* Return whether PID contains a user-space thread id. */
#define ISTID(PID) (ptid_get_tid (PID))
+/* This is the amount to subtract from u.u_ar0
+ to get the offset in the core file of the register values. */
+#define KERNEL_U_ADDR 0xe0000000
+
#endif /* NM_I386V42MP_H */
Index: config/i386/xm-i386v.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/xm-i386v.h,v
retrieving revision 1.2
diff -p -u -r1.2 xm-i386v.h
--- config/i386/xm-i386v.h 2 Dec 2001 02:57:14 -0000 1.2
+++ config/i386/xm-i386v.h 29 Jul 2004 20:52:37 -0000
@@ -36,8 +36,3 @@
#define USG
#define HAVE_TERMIO
-
-/* This is the amount to subtract from u.u_ar0
- to get the offset in the core file of the register values. */
-
-#define KERNEL_U_ADDR 0xe0000000
Index: config/vax/nm-vax.h
===================================================================
RCS file: /cvs/src/src/gdb/config/vax/nm-vax.h,v
retrieving revision 1.3
diff -p -u -r1.3 nm-vax.h
--- config/vax/nm-vax.h 29 Apr 2003 01:49:48 -0000 1.3
+++ config/vax/nm-vax.h 29 Jul 2004 20:52:37 -0000
@@ -20,6 +20,10 @@
#define AP_REGNUM 12 /* XXXJRT */
+/* This is the amount to subtract from u.u_ar0
+ to get the offset in the core file of the register values. */
+#define KERNEL_U_ADDR (0x80000000 - (UPAGES * NBPG))
+
#define REGISTER_U_ADDR(addr, blockend, regno) \
{ addr = blockend - 0110 + regno * 4; \
if (regno == PC_REGNUM) addr = blockend - 8; \
Index: config/vax/xm-vax.h
===================================================================
RCS file: /cvs/src/src/gdb/config/vax/xm-vax.h,v
retrieving revision 1.3
diff -p -u -r1.3 xm-vax.h
--- config/vax/xm-vax.h 4 Apr 2004 14:03:56 -0000 1.3
+++ config/vax/xm-vax.h 29 Jul 2004 20:52:37 -0000
@@ -18,11 +18,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-/* This is the amount to subtract from u.u_ar0
- to get the offset in the core file of the register values. */
-
-#define KERNEL_U_ADDR (0x80000000 - (UPAGES * NBPG))
-
/* Kernel is a bit tenacious about sharing text segments, disallowing bpts. */
#define ONE_PROCESS_WRITETEXT