summaryrefslogtreecommitdiff
path: root/gdb/amd64fbsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-08-23 13:58:18 +0000
committerMark Kettenis <kettenis@gnu.org>2003-08-23 13:58:18 +0000
commitf53fec75aa1020706eafdaac7377d36b8b53c255 (patch)
tree0c1bca1773736c71f69e0d81a753d9c7b266b86a /gdb/amd64fbsd-nat.c
parentfab3cf6f1bcfb6bcc2b5fbab21aee7eaa8bb3c7d (diff)
downloadgdb-f53fec75aa1020706eafdaac7377d36b8b53c255.tar.gz
* x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
Update comments. * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update comments. * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to x86_64_supply_fxsave. * x86-64-linux-nat.c (supply_fpregset): Adjust call to x86_64_supply_fxsave. * amd64fbsd-nat.c (supply_fpregset): Adjust call to x86_64_supply_fxsave.
Diffstat (limited to 'gdb/amd64fbsd-nat.c')
-rw-r--r--gdb/amd64fbsd-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/amd64fbsd-nat.c b/gdb/amd64fbsd-nat.c
index 71861d99ccc..e90d8fac061 100644
--- a/gdb/amd64fbsd-nat.c
+++ b/gdb/amd64fbsd-nat.c
@@ -124,7 +124,7 @@ fill_gregset (gregset_t *gregsetp, int regno)
void
supply_fpregset (fpregset_t *fpregsetp)
{
- x86_64_supply_fxsave ((char *) fpregsetp);
+ x86_64_supply_fxsave ((const char *) fpregsetp, -1);
}
/* Fill register REGNO (if it is a floating-point register) in
@@ -201,7 +201,7 @@ store_inferior_registers (int regno)
perror_with_name ("Couldn't get floating point status");
fill_fpregset (&fpregs, regno);
-
+
if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
(PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
perror_with_name ("Couldn't write floating point status");