* i386-linux-nat.c (store_fpxregs): Add code to detect support for
the PTRACE_GETFPXREGS request, and return zero if it's not.
This commit is contained in:
parent
a6cff3e317
commit
2866d30574
2 changed files with 14 additions and 1 deletions
|
@ -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>
|
2000-12-21 Fernando Nasser <fnasser@redhat.com>
|
||||||
|
|
||||||
* TODO: Add pre-uiout code removal to 5.2 cleanups.
|
* TODO: Add pre-uiout code removal to 5.2 cleanups.
|
||||||
|
|
|
@ -469,7 +469,15 @@ store_fpxregs (int tid, int regno)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (ptrace (PTRACE_GETFPXREGS, tid, 0, &fpxregs) == -1)
|
if (ptrace (PTRACE_GETFPXREGS, tid, 0, &fpxregs) == -1)
|
||||||
|
{
|
||||||
|
if (errno == EIO)
|
||||||
|
{
|
||||||
|
have_ptrace_getfpxregs = 0;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
perror_with_name ("Couldn't read floating-point and SSE registers");
|
perror_with_name ("Couldn't read floating-point and SSE registers");
|
||||||
|
}
|
||||||
|
|
||||||
fill_fpxregset (&fpxregs, regno);
|
fill_fpxregset (&fpxregs, regno);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue