summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-12-21 20:18:45 +0000
committerMark Kettenis <kettenis@gnu.org>2000-12-21 20:18:45 +0000
commit4cd9b660e1bca273c94cf69e2529673ad4505b5f (patch)
tree2d219036deb8f48d055e4c6e4545d32c022eb2e1
parenta4e21930a30363e785d197bf1e0209786c37916b (diff)
downloadgdb-4cd9b660e1bca273c94cf69e2529673ad4505b5f.tar.gz
* i386-linux-nat.c (store_fpxregs): Add code to detect support for
the PTRACE_GETFPXREGS request, and return zero if it's not.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/i386-linux-nat.c10
2 files changed, 14 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 656bfc22a3b..a4ef68bed67 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2000-12-21 Mark Kettenis <kettenis@gnu.org>
+
+ * i386-linux-nat.c (store_fpxregs): Add code to detect support for
+ the PTRACE_GETFPXREGS request, and return zero if it's not.
+
2000-12-21 Fernando Nasser <fnasser@redhat.com>
* TODO: Add pre-uiout code removal to 5.2 cleanups.
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index a1bc3d77ae7..cf703b79e46 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -469,7 +469,15 @@ store_fpxregs (int tid, int regno)
return 0;
if (ptrace (PTRACE_GETFPXREGS, tid, 0, &fpxregs) == -1)
- perror_with_name ("Couldn't read floating-point and SSE registers");
+ {
+ if (errno == EIO)
+ {
+ have_ptrace_getfpxregs = 0;
+ return 0;
+ }
+
+ perror_with_name ("Couldn't read floating-point and SSE registers");
+ }
fill_fpxregset (&fpxregs, regno);