* i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
authorMark Kettenis <kettenis@gnu.org>
Sun, 26 Oct 2003 14:47:26 +0000 (14:47 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 26 Oct 2003 14:47:26 +0000 (14:47 +0000)
* x86-64-tdep.c (x86_64_store_return_value): Use
I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.

gdb/ChangeLog
gdb/i386-tdep.h
gdb/x86-64-tdep.c

index f460b93895daa666edfce9607d27b2edbe18b20b..004ed17c0902fbea15e9cdf791e386ece283edb7 100644 (file)
@@ -1,5 +1,9 @@
 2003-10-26  Mark Kettenis  <kettenis@gnu.org>
 
+       * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
+       * x86-64-tdep.c (x86_64_store_return_value): Use
+       I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
+
        Change register numbers to enumartion values.
        * i386-tdep.h (enum i386_regnum): New.
        (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
index cb42a1b9a76b9abf13a0caac5d51b4b083a4add9..1b5b6a379664f9dd6bb3c25d87c2ebe5d8361ffe 100644 (file)
@@ -104,8 +104,6 @@ struct gdbarch_tdep
 
 /* Floating-point registers.  */
 
-#define FPU_REG_RAW_SIZE 10
-
 /* All FPU control regusters (except for FIOFF and FOOFF) are 16-bit
    (at most) in the FPU, but are zero-extended to 32 bits in GDB's
    register cache.  */
index 351b11512c36d3e61f52721929680c0392b001ab..5e6a7e1a2cab441e1e1493b47821c99e6b24bd51 100644 (file)
@@ -761,7 +761,7 @@ x86_64_store_return_value (struct type *type, struct regcache *regcache,
   if (TYPE_CODE_FLT == TYPE_CODE (type) && len == 16)
     {
       ULONGEST fstat;
-      char buf[FPU_REG_RAW_SIZE];
+      char buf[I386_MAX_REGISTER_SIZE];
 
       /* Returning floating-point values is a bit tricky.  Apart from
          storing the return value in %st(0), we have to simulate the
This page took 0.038676 seconds and 4 git commands to generate.