This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Some i386 GNU/Linux cleanup
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 30 Jun 2002 20:44:43 +0200 (CEST)
- Subject: [PATCH] Some i386 GNU/Linux cleanup
HAVE_SSE_REGS is dead now, and checking HAVE_PTRACE_GETFPXREGS in tm.h
file has to be wrong, so I move FILL_FPXREGSET to config/i386/nm-linux.h.
Committed.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
(FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
* config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
(FILL_FPXREGSET): Define.
Index: config/i386/tm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/tm-linux.h,v
retrieving revision 1.21
diff -u -p -r1.21 tm-linux.h
--- config/i386/tm-linux.h 15 Jun 2002 18:09:31 -0000 1.21
+++ config/i386/tm-linux.h 30 Jun 2002 18:41:53 -0000
@@ -24,10 +24,6 @@
#define TM_LINUX_H
#define I386_GNULINUX_TARGET
-#ifdef HAVE_PTRACE_GETFPXREGS
-#define FILL_FPXREGSET
-#define HAVE_SSE_REGS
-#endif
#include "i386/tm-i386.h"
#include "config/tm-linux.h"
Index: config/i386/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-linux.h,v
retrieving revision 1.17
diff -u -p -r1.17 nm-linux.h
--- config/i386/nm-linux.h 5 Jun 2002 19:18:19 -0000 1.17
+++ config/i386/nm-linux.h 30 Jun 2002 18:41:53 -0000
@@ -77,6 +77,11 @@ extern int cannot_store_register (int re
#define CANNOT_FETCH_REGISTER(regno) cannot_fetch_register (regno)
#define CANNOT_STORE_REGISTER(regno) cannot_store_register (regno)
+#ifdef HAVE_PTRACE_GETFPXREGS
+/* Include register set support for the SSE registers. */
+#define FILL_FPXREGSET
+#endif
+
/* Override child_resume in `infptrace.c'. */
#define CHILD_RESUME