diff options
Diffstat (limited to 'gdb/config/i386')
-rw-r--r-- | gdb/config/i386/nm-linux.h | 11 | ||||
-rw-r--r-- | gdb/config/i386/xm-linux.h | 4 |
2 files changed, 8 insertions, 7 deletions
diff --git a/gdb/config/i386/nm-linux.h b/gdb/config/i386/nm-linux.h index 33c4cf5..ab42ee5 100644 --- a/gdb/config/i386/nm-linux.h +++ b/gdb/config/i386/nm-linux.h @@ -29,18 +29,23 @@ #include "i386/nm-i386.h" #include "nm-linux.h" -/* Return sizeof user struct to callers in less machine dependent - routines. */ +/* Support for the user area. */ +/* Return the size of the user struct. */ extern int kernel_u_size (void); #define KERNEL_U_SIZE kernel_u_size() +/* This is the amount to substract from u.u_ar0 to get the offset in + the core file of the register values. */ +#define KERNEL_U_ADDR 0 + +/* Offset of the registers within the user area. */ #define U_REGS_OFFSET 0 extern CORE_ADDR register_u_addr (CORE_ADDR blockend, int regnum); #define REGISTER_U_ADDR(addr, blockend, regnum) \ (addr) = register_u_addr (blockend, regnum) - + /* Provide access to the i386 hardware debugging registers. */ extern void i386_linux_dr_set_control (unsigned long control); diff --git a/gdb/config/i386/xm-linux.h b/gdb/config/i386/xm-linux.h index 0968396..dd3e280 100644 --- a/gdb/config/i386/xm-linux.h +++ b/gdb/config/i386/xm-linux.h @@ -26,10 +26,6 @@ #define HOST_LONG_DOUBLE_FORMAT &floatformat_i387_ext -/* 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 NEED_POSIX_SETPGID /* Need R_OK etc, but USG isn't defined. */ |