summaryrefslogtreecommitdiff
path: root/gdb/x86-64-linux-nat.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-11-16 00:53:23 +0000
committerAndrew Cagney <cagney@redhat.com>2002-11-16 00:53:23 +0000
commitb1b6e1d33df23fb78b63662a4f761c799a64ba01 (patch)
treeda5f0d29a67f0de58cf4efb27b79589279747126 /gdb/x86-64-linux-nat.c
parentdf9914dc09b709139bf7bd628f82ed68245097ef (diff)
downloadgdb-b1b6e1d33df23fb78b63662a4f761c799a64ba01.tar.gz
2002-11-15 Andrew Cagney <cagney@redhat.com>
* x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from i386-tdep.c.
Diffstat (limited to 'gdb/x86-64-linux-nat.c')
-rw-r--r--gdb/x86-64-linux-nat.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/x86-64-linux-nat.c b/gdb/x86-64-linux-nat.c
index 78e9c495af6..69495b8e73d 100644
--- a/gdb/x86-64-linux-nat.c
+++ b/gdb/x86-64-linux-nat.c
@@ -456,6 +456,17 @@ static struct core_fns linux_elf_core_fns = {
#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