diff options
author | Peter Schauer <pes@regent.e-technik.tu-muenchen.de> | 2000-09-22 17:45:47 +0000 |
---|---|---|
committer | Peter Schauer <pes@regent.e-technik.tu-muenchen.de> | 2000-09-22 17:45:47 +0000 |
commit | 1d7afcdcb48a2202ea15b028cd6f7fc7a13502d0 (patch) | |
tree | 154233d26e6d691540dfec3655d221061aaa6b02 /gdb/config/i386/nm-linux.h | |
parent | 8533752ad310096050ab09e600e35ae377e0bad3 (diff) | |
download | gdb-1d7afcdcb48a2202ea15b028cd6f7fc7a13502d0.tar.gz |
* i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
OLD_CANNOT_FETCH_REGISTER): New definitions for accessible registers
when accessing the registers via the U area.
(fetch_register, store_register): Use them.
(cannot_fetch_register, cannot_store_register): New functions,
all registers should be accessible if we have GETREGS support.
* config/i386/nm-linux.h: Use cannot_fetch/store_register for
CANNOT_FETCH/STORE_REGISTER definitions.
Diffstat (limited to 'gdb/config/i386/nm-linux.h')
-rw-r--r-- | gdb/config/i386/nm-linux.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/config/i386/nm-linux.h b/gdb/config/i386/nm-linux.h index 6f83d38f0e5..c6bd54df2a6 100644 --- a/gdb/config/i386/nm-linux.h +++ b/gdb/config/i386/nm-linux.h @@ -65,12 +65,14 @@ extern int kernel_u_size (void); /* Override copies of {fetch,store}_inferior_registers in `infptrace.c'. */ #define FETCH_INFERIOR_REGISTERS -/* Nevertheless, define CANNOT_{FETCH,STORE}_REGISTER, because we fall +/* Nevertheless, define CANNOT_{FETCH,STORE}_REGISTER, because we might fall back on the code `infptrace.c' (well a copy of that code in `i386-linux-nat.c' for now) and we can access only the general-purpose registers in that way. */ -#define CANNOT_FETCH_REGISTER(regno) ((regno) >= NUM_GREGS) -#define CANNOT_STORE_REGISTER(regno) CANNOT_FETCH_REGISTER (regno) +extern int cannot_fetch_register (int regno); +extern int cannot_store_register (int regno); +#define CANNOT_FETCH_REGISTER(regno) cannot_store_register (regno) +#define CANNOT_STORE_REGISTER(regno) cannot_fetch_register (regno) /* Override child_resume in `infptrace.c'. */ #define CHILD_RESUME |