OSDN Git Service

* i386-linux-nat.c (store_fpxregs): Add code to detect support for
authorkettenis <kettenis>
Thu, 21 Dec 2000 20:18:45 +0000 (20:18 +0000)
committerkettenis <kettenis>
Thu, 21 Dec 2000 20:18:45 +0000 (20:18 +0000)
the PTRACE_GETFPXREGS request, and return zero if it's not.

gdb/ChangeLog
gdb/i386-linux-nat.c

index 656bfc2..a4ef68b 100644 (file)
@@ -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.
index a1bc3d7..cf703b7 100644 (file)
@@ -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);