/* Native-dependent code for AMD64 BSD's.
- Copyright 2003 Free Software Foundation, Inc.
+ Copyright 2003, 2004 Free Software Foundation, Inc.
This file is part of GDB.
#include <sys/ptrace.h>
#include <machine/reg.h>
-#include "x86-64-tdep.h"
+#include "amd64-tdep.h"
#include "amd64-nat.h"
\f
return;
}
- if (regnum == -1 || regnum >= AMD64_ST0_REGNUM)
+ if (regnum == -1 || !amd64_native_gregset_supplies_p (regnum))
{
struct fpreg fpregs;
return;
}
- if (regnum == -1 || regnum >= AMD64_ST0_REGNUM)
+ if (regnum == -1 || !amd64_native_gregset_supplies_p (regnum))
{
struct fpreg fpregs;
(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)