diff options
author | Mark Kettenis <kettenis@gnu.org> | 2000-12-21 20:18:45 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2000-12-21 20:18:45 +0000 |
commit | 2866d3057449bb4fe35784fb86accf03863ed87b (patch) | |
tree | 4c5b1e76e742f191e663dbba489c8101cce98630 /gdb/i386-linux-nat.c | |
parent | a6cff3e31708b4a568315b9218ebb95259649c66 (diff) | |
download | ppe42-binutils-2866d3057449bb4fe35784fb86accf03863ed87b.tar.gz ppe42-binutils-2866d3057449bb4fe35784fb86accf03863ed87b.zip |
* i386-linux-nat.c (store_fpxregs): Add code to detect support for
the PTRACE_GETFPXREGS request, and return zero if it's not.
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r-- | gdb/i386-linux-nat.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index a1bc3d77ae..cf703b79e4 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); |