aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-linux-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-06-15 16:43:54 +0000
committerMark Kettenis <kettenis@gnu.org>2002-06-15 16:43:54 +0000
commit98df638700d5e911ebc01881b60c0b08e74f183e (patch)
tree471f0ae084c6619e554d328cebc170fd7c52ea75 /gdb/i386-linux-nat.c
parent099a94140a8ba8764769c824d9115d2635eb6ae2 (diff)
downloadfsf-binutils-gdb-98df638700d5e911ebc01881b60c0b08e74f183e.zip
fsf-binutils-gdb-98df638700d5e911ebc01881b60c0b08e74f183e.tar.gz
fsf-binutils-gdb-98df638700d5e911ebc01881b60c0b08e74f183e.tar.bz2
* i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace usage of NUM_GREGS with I386_NUM_GREGS.
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r--gdb/i386-linux-nat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index aecca1d..fe61021 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -171,7 +171,7 @@ kernel_u_size (void)
#endif
/* Registers we shouldn't try to fetch. */
-#define OLD_CANNOT_FETCH_REGISTER(regno) ((regno) >= NUM_GREGS)
+#define OLD_CANNOT_FETCH_REGISTER(regno) ((regno) >= I386_NUM_GREGS)
/* Fetch one register. */
@@ -237,7 +237,7 @@ old_fetch_inferior_registers (int regno)
}
/* Registers we shouldn't try to store. */
-#define OLD_CANNOT_STORE_REGISTER(regno) ((regno) >= NUM_GREGS)
+#define OLD_CANNOT_STORE_REGISTER(regno) ((regno) >= I386_NUM_GREGS)
/* Store one register. */
@@ -311,7 +311,7 @@ supply_gregset (elf_gregset_t *gregsetp)
elf_greg_t *regp = (elf_greg_t *) gregsetp;
int i;
- for (i = 0; i < NUM_GREGS; i++)
+ for (i = 0; i < I386_NUM_GREGS; i++)
supply_register (i, (char *) (regp + regmap[i]));
if (I386_LINUX_ORIG_EAX_REGNUM < NUM_REGS)
@@ -328,7 +328,7 @@ fill_gregset (elf_gregset_t *gregsetp, int regno)
elf_greg_t *regp = (elf_greg_t *) gregsetp;
int i;
- for (i = 0; i < NUM_GREGS; i++)
+ for (i = 0; i < I386_NUM_GREGS; i++)
if (regno == -1 || regno == i)
regcache_collect (i, regp + regmap[i]);