This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Integrate x86-64 and i386 targets
- From: Michal Ludvig <mludvig at suse dot cz>
- To: Mark Kettenis <kettenis at chello dot nl>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 06 Jan 2003 15:50:46 +0100
- Subject: Re: [PATCH] Integrate x86-64 and i386 targets
- Organization: SuSE CR
- References: <200212212110.gBLLAwqU044229@elgar.kettenis.dyndns.org>
Mark Kettenis wrote:
I checked that I could build an i386-freebsd4.6 x x86_64-linux-gnu
cross debugger, and checked that it correctly selects the right target
for a x86-64 binary. Therefore I checked it in. Michal, could you
check whether GDB still functions correctly on x86-64?
Thanks!
With the attached patch (committed) it at least compiles :-)
I'll run some tests now.
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* (+420) 296.545.373 * http://www.suse.cz
Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.3669
diff -u -p -r1.3669 ChangeLog
--- ChangeLog 6 Jan 2003 10:28:05 -0000 1.3669
+++ ChangeLog 6 Jan 2003 14:46:36 -0000
@@ -1,3 +1,8 @@
+2003-01-06 Michal Ludvig <mludvig@suse.cz>
+
+ * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
+ since it is in i386-tdep.c.
+
2003-01-06 J. Brobecker <brobecker@gnat.com>
* alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
Index: x86-64-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-linux-nat.c,v
retrieving revision 1.18
diff -u -p -r1.18 x86-64-linux-nat.c
--- x86-64-linux-nat.c 16 Nov 2002 00:53:23 -0000 1.18
+++ x86-64-linux-nat.c 6 Jan 2003 14:41:42 -0000
@@ -456,17 +456,6 @@ static struct core_fns linux_elf_core_fn
#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
#endif
-/* SSE register? */
-/* FIXME: cagney/2002-11-15: Once the i386 and x86-64 are integrated,
- this will go. */
-
-int
-i386_sse_regnum_p (int regnum)
-{
- return (regnum < NUM_REGS
- && (XMM0_REGNUM <= (regnum) && (regnum) < MXCSR_REGNUM));
-}
-
/* Return the address of register REGNUM. BLOCKEND is the value of
u.u_ar0, which should point to the registers. */
CORE_ADDR