* i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
authorMark Kettenis <kettenis@gnu.org>
Mon, 12 Nov 2001 22:27:35 +0000 (22:27 +0000)
committerMark Kettenis <kettenis@gnu.org>
Mon, 12 Nov 2001 22:27:35 +0000 (22:27 +0000)
* i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
* config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
(SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.

gdb/ChangeLog
gdb/config/i386/tm-i386.h
gdb/i386-tdep.h
gdb/i387-nat.c
gdb/i387-tdep.c

index dc283915c363bcf4ac48bed986fccad92c517c5e..d7f2111ac4776249d9d6c691cb1a664d629e89a8 100644 (file)
@@ -1,3 +1,10 @@
+2001-11-11  Mark Kettenis  <kettenis@elgar.my.domain>
+
+       * i386-tdep.h (FPU_REG_RAW_SIZE): Define unconditionally.
+       * i387-nat.c, i387-tdep.c: Unconditionally include "i386-tdep.h".
+       * config/i386/tm-i386.h (FPU_REG_RAW_SIZE): Removed.
+       (SIZEOF_FPU_REGS): Don't use FPU_REG_RAW_SIZE here.
+
 2001-11-12  Jim Blandy  <jimb@redhat.com>
 
        Patch from Andreas Schwab <schwab@suse.de>:
index 80e90c0e2b2467422211333951c07eda9178d7ad..7661bd8d56de200bf0bac63fc251f3735855496c 100644 (file)
@@ -176,8 +176,6 @@ extern CORE_ADDR i386_saved_pc_after_call (struct frame_info *frame);
 #define IS_FP_REGNUM(n) (FP0_REGNUM <= (n) && (n) <= FP7_REGNUM)
 #define IS_SSE_REGNUM(n) (XMM0_REGNUM <= (n) && (n) <= XMM7_REGNUM)
 
-#define FPU_REG_RAW_SIZE (10)
-
 /* Return the name of register REG.  */
 
 #define REGISTER_NAME(reg) i386_register_name ((reg))
@@ -203,7 +201,7 @@ extern int i386_dwarf_reg_to_regnum (int reg);
    file, so summing up the sizes of those portions actually present
    yields REGISTER_BYTES.  */
 #define SIZEOF_GREGS (NUM_GREGS * 4)
-#define SIZEOF_FPU_REGS (8 * FPU_REG_RAW_SIZE)
+#define SIZEOF_FPU_REGS (8 * 10)
 #define SIZEOF_FPU_CTRL_REGS \
   ((LAST_FPU_CTRL_REGNUM - FIRST_FPU_CTRL_REGNUM + 1) * 4)
 #define SIZEOF_SSE_REGS (8 * 16 + 4)
index 39798ecdb5113cbfb0c4cd8f9cfb0df7578eb56d..b8f3d40bbfd90e443495d94602b5b6d11fcb1826 100644 (file)
@@ -22,9 +22,7 @@
 #ifndef I386_TDEP_H
 #define I386_TDEP_H
 
-#if !defined (FPU_REG_RAW_SIZE) || (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL)
 #define FPU_REG_RAW_SIZE 10
-#endif
 
 #if !defined (XMM0_REGNUM) || (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL)
 #define XMM0_REGNUM FIRST_XMM_REGNUM
index 44a5e8a91357a19927b84a94a491ccf1936e08b6..b15184e5d51b52b0b98c3f7701fd86457cfcfb38 100644 (file)
 #include "regcache.h"
 
 #include "i387-nat.h"
-
-#if GDB_MULTI_ARCH > 0
 #include "i386-tdep.h"
-#endif
 
 /* FIXME: kettenis/2000-05-21: Right now more than a few i386 targets
    define their own routines to manage the floating-point registers in
index bb69b808453d259c85497ff547d36190546d08f8..2a6f77ce42d4429fd03a6084f9685490484ab6ea 100644 (file)
@@ -30,9 +30,7 @@
 #include "gdb_assert.h"
 #include "doublest.h"
 
-#if GDB_MULTI_ARCH >0
 #include "i386-tdep.h"
-#endif
 
 /* FIXME: Eliminate the next two functions when we have the time to
    change all the callers.  */
This page took 0.062699 seconds and 4 git commands to generate.