diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-11-16 00:53:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-11-16 00:53:23 +0000 |
commit | a6b063af0fd3cd7ac6ea7e2d360b00361bb6b1a8 (patch) | |
tree | 5d8dd85515748c217f84357179b1bb282780e390 | |
parent | ddeb4f22319ea7ce6054070cef79847aec886b9b (diff) | |
download | gdb-a6b063af0fd3cd7ac6ea7e2d360b00361bb6b1a8.zip gdb-a6b063af0fd3cd7ac6ea7e2d360b00361bb6b1a8.tar.gz gdb-a6b063af0fd3cd7ac6ea7e2d360b00361bb6b1a8.tar.bz2 |
2002-11-15 Andrew Cagney <cagney@redhat.com>
* x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
i386-tdep.c.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/x86-64-linux-nat.c | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1117e61..639ccf9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2002-11-15 Andrew Cagney <cagney@redhat.com> + * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from + i386-tdep.c. + +2002-11-15 Andrew Cagney <cagney@redhat.com> + * frame.h (sigtramp_saved_pc): Delete declaration. * blockframe.c (sigtramp_saved_pc): Delete function. * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function. diff --git a/gdb/x86-64-linux-nat.c b/gdb/x86-64-linux-nat.c index 78e9c49..69495b8 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 |