From 722d18c22c7276b6829fa674782cd7149bc8ffcf Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 4 Mar 2004 10:35:57 +0000 Subject: [PATCH] * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave instead of amd64_fill_fxsave. * amd64bsd-nat.c (store_inferior_registers): Likewise. * amd64fbsd-nat.c (fill_fpregset): Likewise. --- gdb/ChangeLog | 5 +++++ gdb/amd64-linux-nat.c | 2 +- gdb/amd64bsd-nat.c | 2 +- gdb/amd64fbsd-nat.c | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2acfb7238a6..85b835292e1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2004-03-04 Mark Kettenis + * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave + instead of amd64_fill_fxsave. + * amd64bsd-nat.c (store_inferior_registers): Likewise. + * amd64fbsd-nat.c (fill_fpregset): Likewise. + * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero. Reorganize code a bit. diff --git a/gdb/amd64-linux-nat.c b/gdb/amd64-linux-nat.c index ec0bfb92812..63417c40b09 100644 --- a/gdb/amd64-linux-nat.c +++ b/gdb/amd64-linux-nat.c @@ -176,7 +176,7 @@ supply_fpregset (elf_fpregset_t *fpregsetp) void fill_fpregset (elf_fpregset_t *fpregsetp, int regnum) { - amd64_fill_fxsave ((char *) fpregsetp, regnum); + amd64_collect_fxsave (current_regcache, regnum, fpregsetp); } /* Fetch all floating-point registers from process/thread TID and store diff --git a/gdb/amd64bsd-nat.c b/gdb/amd64bsd-nat.c index 4c7c04a881d..777fd690b39 100644 --- a/gdb/amd64bsd-nat.c +++ b/gdb/amd64bsd-nat.c @@ -98,7 +98,7 @@ store_inferior_registers (int regnum) (PTRACE_ARG3_TYPE) &fpregs, 0) == -1) perror_with_name ("Couldn't get floating point status"); - amd64_fill_fxsave ((char *) &fpregs, regnum); + amd64_collect_fxsave (current_regcache, regnum, &fpregs); if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) &fpregs, 0) == -1) diff --git a/gdb/amd64fbsd-nat.c b/gdb/amd64fbsd-nat.c index f08373422c2..61ce73cce9d 100644 --- a/gdb/amd64fbsd-nat.c +++ b/gdb/amd64fbsd-nat.c @@ -141,7 +141,7 @@ supply_fpregset (fpregset_t *fpregsetp) void fill_fpregset (fpregset_t *fpregsetp, int regnum) { - amd64_fill_fxsave ((char *) fpregsetp, regnum); + amd64_collect_fxsave (current_regcache, regnum, fpregsetp); } -- 2.30.2