aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-nto-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2004-09-08 14:46:09 +0000
committerMark Kettenis <kettenis@gnu.org>2004-09-08 14:46:09 +0000
commitf6792ef4afa7992e19bb1e2e536881b1ffaa0606 (patch)
treef2e24f95b23ed188827439fa8fd9bdddc95e6350 /gdb/i386-nto-tdep.c
parenteeefdaa78f7bdf4c215f5176ea92c94c4a2cc41e (diff)
downloadgdb-f6792ef4afa7992e19bb1e2e536881b1ffaa0606.zip
gdb-f6792ef4afa7992e19bb1e2e536881b1ffaa0606.tar.gz
gdb-f6792ef4afa7992e19bb1e2e536881b1ffaa0606.tar.bz2
* i386-tdep.h (FPC_REGNUM, FCTRL_REGNUM, FSTAT_REGNUM, FTAG_REGNUM)
(FISEG_REGNUM, FIOFF_REGNUM, FOSEG_REGNUM, FOOFF_REGNUM) (FOP_REGNUM, XMM0_REGNUM, MXCSR_REGNUM): Remove macros. (i386_frameless_signal_p): Remove prototype. * i386-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro. (GETFPXREGS_SUPPLIES): Define using I386_ST0_REGNUM and I386_SSE_NUM_REGS. * i386-nto-tdep.c (i386nto_supply_gregset): Use I386_NUM_GREGS instead of FP0_REGNUM. (i386nto_regset_id): Use I386_NUM_GREGS and I386_NUM_FREGS instead of FP0_REGNUM and FPC_REGNUM.
Diffstat (limited to 'gdb/i386-nto-tdep.c')
-rw-r--r--gdb/i386-nto-tdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c
index 5b95cd6..eed66a9 100644
--- a/gdb/i386-nto-tdep.c
+++ b/gdb/i386-nto-tdep.c
@@ -73,7 +73,7 @@ i386nto_supply_gregset (char *gpregs)
unsigned regno;
int empty = 0;
- for (regno = 0; regno < FP0_REGNUM; regno++)
+ for (regno = 0; regno < I386_NUM_GREGS; regno++)
{
int offset = nto_reg_offset (regno);
if (offset == -1)
@@ -111,9 +111,9 @@ i386nto_regset_id (int regno)
{
if (regno == -1)
return NTO_REG_END;
- else if (regno < FP0_REGNUM)
+ else if (regno < I386_NUM_GREGS)
return NTO_REG_GENERAL;
- else if (regno < FPC_REGNUM)
+ else if (regno < I386_NUM_GREGS + I386_NUM_FREGS)
return NTO_REG_FLOAT;
return -1; /* Error. */