summaryrefslogtreecommitdiff
path: root/gdb/i386-linux-nat.c
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-12-07 03:55:56 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-12-07 03:55:56 +0000
commit90a10a551076bdbf1ec24ceecc83cd36d620abcc (patch)
treea93a81b5ebf12843c74af98465c1a2b467869173 /gdb/i386-linux-nat.c
parentfa2c4f1c5af199df2631e32dba1d10381049eef6 (diff)
downloadgdb-90a10a551076bdbf1ec24ceecc83cd36d620abcc.tar.gz
import gdb-1999-12-06 snapshotgdb-1999-12-06
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r--gdb/i386-linux-nat.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 15debfcfb59..ba1f9d28d1e 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -58,6 +58,13 @@ static int regmap[] =
file may or may not define it, and even if it is defined, the
kernel will return EIO if it's running on a pre-SSE processor.
+ PTRACE_GETXFPREGS is a Cygnus invention, since we wrote our own
+ Linux kernel patch for SSE support. That patch may or may not
+ actually make it into the official distribution. If you find that
+ years have gone by since this stuff was added, and Linux isn't
+ using PTRACE_GETXFPREGS, that means that our patch didn't make it,
+ and you can delete this, and the related code.
+
My instinct is to attach this to some architecture- or
target-specific data structure, but really, a particular GDB
process can only run on top of one kernel at a time. So it's okay
@@ -121,7 +128,7 @@ fill_gregset (gregset_t *gregsetp,
{
if (regno == -1)
convert_to_gregset (gregsetp, registers, 0);
- else
+ else if (regno >= 0 && regno < NUM_GREGS)
{
signed char valid[NUM_GREGS];
memset (valid, 0, sizeof (valid));