instead of amd64_fill_fxsave.
* amd64bsd-nat.c (store_inferior_registers): Likewise.
* amd64fbsd-nat.c (fill_fpregset): Likewise.
2004-03-04 Mark Kettenis <kettenis@gnu.org>
+ * 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.
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
(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)
void
fill_fpregset (fpregset_t *fpregsetp, int regnum)
{
- amd64_fill_fxsave ((char *) fpregsetp, regnum);
+ amd64_collect_fxsave (current_regcache, regnum, fpregsetp);
}
\f