From 0485f6ad303a1c0cbc03d83af4fa380987c0fc38 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 23 Aug 2003 13:58:18 +0000 Subject: * 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. --- gdb/amd64fbsd-nat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/amd64fbsd-nat.c') diff --git a/gdb/amd64fbsd-nat.c b/gdb/amd64fbsd-nat.c index 71861d9..e90d8fa 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"); -- cgit v1.1