* go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
authorMark Kettenis <kettenis@gnu.org>
Mon, 21 Jan 2002 23:03:13 +0000 (23:03 +0000)
committerMark Kettenis <kettenis@gnu.org>
Mon, 21 Jan 2002 23:03:13 +0000 (23:03 +0000)
macros instead of LAST_FPU_CTRL_REGNUM.
(store_register): Likewise.

gdb/ChangeLog
gdb/go32-nat.c

index ae67a79e381b79e74f95c9b3f3b94b811d500eef..1f289170279abbe6b83f96b33d260faf2d77fd26 100644 (file)
@@ -1,3 +1,9 @@
+2002-01-20  Mark Kettenis  <kettenis@gnu.org>
+
+       * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
+       macros instead of LAST_FPU_CTRL_REGNUM.
+       (store_register): Likewise.
+
 2002-01-21  Jim Blandy  <jimb@redhat.com>
 
        * infcmd.c (run_command): Check that the `exec' target layer's BFD
index ae8205e29965ec9a06d6180a39aceec2a909fd03..307956bd6a057377fef700cd41c2ffb4bc8e8faa 100644 (file)
@@ -466,7 +466,7 @@ fetch_register (int regno)
 {
   if (regno < FP0_REGNUM)
     supply_register (regno, (char *) &a_tss + regno_mapping[regno].tss_ofs);
-  else if (regno <= LAST_FPU_CTRL_REGNUM)
+  else if (FP_REGNUM_P (regno) || FPC_REGNUM_P (regno))
     i387_supply_register (regno, (char *) &npx);
   else
     internal_error (__FILE__, __LINE__,
@@ -491,8 +491,8 @@ store_register (int regno)
 {
   if (regno < FP0_REGNUM)
     regcache_collect (regno, (void *) &a_tss + regno_mapping[regno].tss_ofs);
-  else if (regno <= LAST_FPU_CTRL_REGNUM)
-    i387_fill_fsave ((char *)&npx, regno);
+  else if (FP_REGNUM_P (regno) || FPC_REGNUM_P (regno))
+    i387_fill_fsave ((char *) &npx, regno);
   else
     internal_error (__FILE__, __LINE__,
                    "Invalid register no. %d in store_register.", regno);
This page took 0.055599 seconds and 4 git commands to generate.