From: kettenis@gnu.org
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Some i386 cleanup
Date: Thu, 01 Nov 2001 19:33:00 -0000 [thread overview]
Message-ID: <200111122328.fACNSUQ00270@elgar.my.domain> (raw)
Committed.
Index: ChangeLog
from 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.
Index: i386-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.h,v
retrieving revision 1.2
diff -u -p -r1.2 i386-tdep.h
--- i386-tdep.h 2001/11/08 18:32:08 1.2
+++ i386-tdep.h 2001/11/12 22:23:27
@@ -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: i387-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i387-nat.c,v
retrieving revision 1.6
diff -u -p -r1.6 i387-nat.c
--- i387-nat.c 2001/09/21 12:15:15 1.6
+++ i387-nat.c 2001/11/12 22:23:27
@@ -24,10 +24,7 @@
#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: i387-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i387-tdep.c,v
retrieving revision 1.15
diff -u -p -r1.15 i387-tdep.c
--- i387-tdep.c 2001/10/28 14:07:35 1.15
+++ i387-tdep.c 2001/11/12 22:23:27
@@ -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. */
Index: config/i386/tm-i386.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-i386.h,v
retrieving revision 1.23
diff -u -p -r1.23 tm-i386.h
--- config/i386/tm-i386.h 2001/11/08 18:32:08 1.23
+++ config/i386/tm-i386.h 2001/11/12 22:23:28
@@ -176,8 +176,6 @@ extern CORE_ADDR i386_saved_pc_after_cal
#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
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)
reply other threads:[~2001-11-12 22:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200111122328.fACNSUQ00270@elgar.my.domain \
--to=kettenis@gnu.org \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox