#include "regcache.h"
#include "gregset.h"
#include "linux-nat.h"
-#include "elf.h"
#include "riscv-tdep.h"
+#include "elf/common.h"
+
#include <sys/ptrace.h>
/* RISC-V Linux native additions to the default linux support. */
iov.iov_base = ®s;
iov.iov_len = sizeof (regs);
- if (ptrace (PTRACE_GETREGSET, tid, NT_PRFPREG,
+ if (ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET,
(PTRACE_TYPE_ARG3) &iov) == -1)
perror_with_name (_("Couldn't get registers"));
else
iov.iov_base = ®s;
iov.iov_len = sizeof (regs);
- if (ptrace (PTRACE_GETREGSET, tid, NT_PRFPREG,
+ if (ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET,
(PTRACE_TYPE_ARG3) &iov) == -1)
perror_with_name (_("Couldn't get registers"));
else
{
fill_fpregset (regcache, ®s, regnum);
- if (ptrace (PTRACE_SETREGSET, tid, NT_PRFPREG,
+ if (ptrace (PTRACE_SETREGSET, tid, NT_FPREGSET,
(PTRACE_TYPE_ARG3) &iov) == -1)
perror_with_name (_("Couldn't set registers"));
}