22#include "elf/common.h"
30#include <asm/ptrace.h>
44 int store_p)
override;
63 iov.iov_len =
sizeof (
regset);
66 perror_with_name (_(
"Couldn't get NT_PRSTATUS registers"));
89 iov.iov_len =
sizeof (
regset);
92 perror_with_name (_(
"Couldn't get NT_PRSTATUS registers"));
98 perror_with_name (_(
"Couldn't set NT_PRSTATUS registers"));
114 struct iovec iovec = { .iov_base = &
regset, .iov_len =
sizeof (
regset) };
117 perror_with_name (_(
"Couldn't get NT_FPREGSET registers"));
135 struct iovec iovec = { .iov_base = &
regset, .iov_len =
sizeof (
regset) };
138 perror_with_name (_(
"Couldn't get NT_FPREGSET registers"));
144 perror_with_name (_(
"Couldn't set NT_FPREGSET registers"));
void fetch_registers(struct regcache *, int) override
void store_registers(struct regcache *, int) override
CORE_ADDR register_u_offset(struct gdbarch *gdbarch, int regnum, int store_p) override
#define ptrace(request, pid, addr, data)
GDB_FPREGSET_T gdb_fpregset_t
GDB_GREGSET_T gdb_gregset_t
void add_inf_child_target(inf_child_target *target)
pid_t get_ptrace_pid(ptid_t ptid)
struct linux_nat_target * linux_target
static void fetch_gregs_from_thread(struct regcache *regcache, int regnum, pid_t tid)
static void fetch_fpregs_from_thread(struct regcache *regcache, int regnum, pid_t tid)
static loongarch_linux_nat_target the_loongarch_linux_nat_target
static void store_gregs_to_thread(struct regcache *regcache, int regnum, pid_t tid)
void _initialize_loongarch_linux_nat()
void supply_gregset(struct regcache *regcache, const gdb_gregset_t *gregset)
void supply_fpregset(struct regcache *regcache, const gdb_fpregset_t *fpregset)
static void store_fpregs_to_thread(struct regcache *regcache, int regnum, pid_t tid)
void fill_gregset(const struct regcache *regcache, gdb_gregset_t *gregset, int regnum)
void fill_fpregset(const struct regcache *regcache, gdb_fpregset_t *fpregset, int regnum)
const struct regset loongarch_gregset
const struct regset loongarch_fpregset
@ LOONGARCH_FIRST_FP_REGNUM
@ LOONGARCH_ORIG_A0_REGNUM
collect_regset_ftype * collect_regset
supply_regset_ftype * supply_regset