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 file (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:24:39 -0400
- Subject: [commit] Move KERNEL_U_ADDR to nm file (easy cases)
FYI,
These are the easy `obvious' cases. That macro definitly does not
belong in the host (xm) file. This leaves the not so easy cases for a
later round.
committed,
Andrew
2004-07-29 Andrew Cagney <cagney@gnu.org>
* config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
* config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
* config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
* config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
* config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
* config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
* config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
* config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
Index: config/arm/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/arm/nm-linux.h,v
retrieving revision 1.9
diff -p -u -r1.9 nm-linux.h
--- config/arm/nm-linux.h 20 Jun 2003 13:57:29 -0000 1.9
+++ config/arm/nm-linux.h 29 Jul 2004 20:21:17 -0000
@@ -31,6 +31,10 @@
extern int kernel_u_size (void);
#define KERNEL_U_SIZE arm_linux_kernel_u_size()
+/* 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 0x0
+
/* Override copies of {fetch,store}_inferior_registers in infptrace.c. */
#define FETCH_INFERIOR_REGISTERS
Index: config/arm/xm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/arm/xm-linux.h,v
retrieving revision 1.5
diff -p -u -r1.5 xm-linux.h
--- config/arm/xm-linux.h 2 Dec 2001 02:57:14 -0000 1.5
+++ config/arm/xm-linux.h 29 Jul 2004 20:21:17 -0000
@@ -21,8 +21,4 @@
#ifndef XM_ARMLINUX_H
#define XM_ARMLINUX_H
-/* 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 0x0
-
#endif /* XM_ARMLINUX_H */
Index: config/ia64/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/ia64/nm-linux.h,v
retrieving revision 1.12
diff -p -u -r1.12 nm-linux.h
--- config/ia64/nm-linux.h 5 Jan 2004 19:53:08 -0000 1.12
+++ config/ia64/nm-linux.h 29 Jul 2004 20:21:17 -0000
@@ -26,6 +26,10 @@ struct target_ops;
#include "config/nm-linux.h"
+/* 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 0x0
+
/* Note: It seems likely that we'll have to eventually define
FETCH_INFERIOR_REGISTERS. But until that time, we'll make do
with the following. */
Index: config/ia64/xm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/ia64/xm-linux.h,v
retrieving revision 1.6
diff -p -u -r1.6 xm-linux.h
--- config/ia64/xm-linux.h 2 Dec 2001 02:57:15 -0000 1.6
+++ config/ia64/xm-linux.h 29 Jul 2004 20:21:17 -0000
@@ -21,8 +21,4 @@
#ifndef XM_LINUX_H
#define XM_LINUX_H
-/* 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 0x0
-
#endif /* #ifndef XM_LINUX_H */
Index: config/m68k/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/nm-linux.h,v
retrieving revision 1.5
diff -p -u -r1.5 nm-linux.h
--- config/m68k/nm-linux.h 5 Jun 2002 19:18:22 -0000 1.5
+++ config/m68k/nm-linux.h 29 Jul 2004 20:21:17 -0000
@@ -28,6 +28,10 @@
#define KERNEL_U_SIZE kernel_u_size()
extern int kernel_u_size (void);
+/* 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 0x0
+
#define U_REGS_OFFSET 0
#define REGISTER_U_ADDR(addr, blockend, regno) \
Index: config/m68k/xm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/m68k/xm-linux.h,v
retrieving revision 1.8
diff -p -u -r1.8 xm-linux.h
--- config/m68k/xm-linux.h 29 Jul 2004 20:04:21 -0000 1.8
+++ config/m68k/xm-linux.h 29 Jul 2004 20:21:17 -0000
@@ -22,8 +22,4 @@
#ifndef XM_LINUX_H
#define XM_LINUX_H
-/* 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 0x0
-
#endif /* #ifndef XM_LINUX_H */
Index: config/powerpc/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/powerpc/nm-linux.h,v
retrieving revision 1.11
diff -p -u -r1.11 nm-linux.h
--- config/powerpc/nm-linux.h 5 Jun 2002 19:18:27 -0000 1.11
+++ config/powerpc/nm-linux.h 29 Jul 2004 20:21:17 -0000
@@ -28,6 +28,10 @@ Foundation, Inc., 675 Mass Ave, Cambridg
#define KERNEL_U_SIZE kernel_u_size()
extern int kernel_u_size (void);
+/* 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 0x0
+
#define FETCH_INFERIOR_REGISTERS
#endif /* #ifndef NM_LINUX_H */
Index: config/powerpc/xm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/powerpc/xm-linux.h,v
retrieving revision 1.9
diff -p -u -r1.9 xm-linux.h
--- config/powerpc/xm-linux.h 20 Jan 2004 09:29:18 -0000 1.9
+++ config/powerpc/xm-linux.h 29 Jul 2004 20:21:17 -0000
@@ -21,8 +21,4 @@ Foundation, Inc., 59 Temple Place - Suit
#ifndef XM_LINUX_H
#define XM_LINUX_H
-/* 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 0x0
-
#endif /* #ifndef XM_LINUX_H */