From e910f676f70b59dc510554d59b3fa603622e019e Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 29 Jul 2004 20:53:27 +0000 Subject: [PATCH] 2004-07-29 Andrew Cagney * 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. --- gdb/ChangeLog | 7 +++++++ gdb/config/i386/nm-i386v.h | 5 ++++- gdb/config/i386/nm-i386v4.h | 4 ++++ gdb/config/i386/nm-i386v42mp.h | 4 ++++ gdb/config/i386/xm-i386v.h | 5 ----- gdb/config/vax/nm-vax.h | 4 ++++ gdb/config/vax/xm-vax.h | 5 ----- 7 files changed, 23 insertions(+), 11 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8831f3ceaf7..d98ffb90964 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2004-07-29 Andrew Cagney + * 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. + * config/powerpc/xm-linux.h: Delete empty file. * config/powerpc/ppc64-linux.mh (XM_FILE): Delete. * config/powerpc/linux.mh (XM_FILE): Delete. diff --git a/gdb/config/i386/nm-i386v.h b/gdb/config/i386/nm-i386v.h index f94c5bb8b35..2d4eb602206 100644 --- a/gdb/config/i386/nm-i386v.h +++ b/gdb/config/i386/nm-i386v.h @@ -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 diff --git a/gdb/config/i386/nm-i386v4.h b/gdb/config/i386/nm-i386v4.h index 356d3cba0ca..ac87cbcfbb5 100644 --- a/gdb/config/i386/nm-i386v4.h +++ b/gdb/config/i386/nm-i386v4.h @@ -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 diff --git a/gdb/config/i386/nm-i386v42mp.h b/gdb/config/i386/nm-i386v42mp.h index f6fced506e8..5b5c7f0308d 100644 --- a/gdb/config/i386/nm-i386v42mp.h +++ b/gdb/config/i386/nm-i386v42mp.h @@ -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 */ diff --git a/gdb/config/i386/xm-i386v.h b/gdb/config/i386/xm-i386v.h index 1c329054f22..426889cf947 100644 --- a/gdb/config/i386/xm-i386v.h +++ b/gdb/config/i386/xm-i386v.h @@ -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 diff --git a/gdb/config/vax/nm-vax.h b/gdb/config/vax/nm-vax.h index 2518047290f..b1d73b6ab59 100644 --- a/gdb/config/vax/nm-vax.h +++ b/gdb/config/vax/nm-vax.h @@ -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; \ diff --git a/gdb/config/vax/xm-vax.h b/gdb/config/vax/xm-vax.h index d1057a8ee41..c859c0a6d1d 100644 --- a/gdb/config/vax/xm-vax.h +++ b/gdb/config/vax/xm-vax.h @@ -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 -- 2.30.2