]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/go32-nat.c
* go32-nat.c (fetch_register): Call i387_supply_fsave instead of
[thirdparty/binutils-gdb.git] / gdb / go32-nat.c
index 6ff2710c22d3faf68d46285431936edcd0334940..998927987b372c955641eff3906409f9abf3081a 100644 (file)
@@ -468,7 +468,7 @@ fetch_register (int regno)
   if (regno < FP0_REGNUM)
     supply_register (regno, (char *) &a_tss + regno_mapping[regno].tss_ofs);
   else if (i386_fp_regnum_p (regno) || i386_fpc_regnum_p (regno))
-    i387_supply_register (regno, (char *) &npx);
+    i387_supply_fsave ((const char *) &npx, regno);
   else
     internal_error (__FILE__, __LINE__,
                    "Invalid register no. %d in fetch_register.", regno);
@@ -483,7 +483,7 @@ go32_fetch_registers (int regno)
     {
       for (regno = 0; regno < FP0_REGNUM; regno++)
        fetch_register (regno);
-      i387_supply_fsave ((char *) &npx);
+      i387_supply_fsave ((const char *) &npx, -1);
     }
 }