27 #include <sys/types.h> 30 #include <sys/ioctl.h> 33 #include <sys/procfs.h> 35 #include <asm/ptrace.h> 264 if (
ptrace (PTRACE_GETXTREGS,
tid, 0, (
long)&xtregs) < 0)
280 if (
ptrace (PTRACE_GETXTREGS,
tid, 0, (
long)&xtregs) < 0)
288 if (
ptrace (PTRACE_SETXTREGS,
tid, 0, (
long)&xtregs) < 0)
326 lwpid_t lwpid,
int idx,
void **base)
336 *base = (
void *) ((
char *) regs.
threadptr - idx);
const xtensa_regtable_t xtensa_regmap_table[]
static void fetch_gregs(struct regcache *regcache, int regnum)
static constexpr ptid_t tid
#define XTENSA_ELF_XTREG_SIZE
ptid_t regcache_get_ptid(const struct regcache *regcache)
struct gdbarch_tdep * gdbarch_tdep(struct gdbarch *gdbarch)
void _initialize_xtensa_linux_nat(void)
int gdbarch_ps_regnum(struct gdbarch *gdbarch)
static void fetch_xtregs(struct regcache *regcache, int regnum)
static void store_xtregs(struct regcache *regcache, int regnum)
void supply_fpregset(struct regcache *regcache, const gdb_fpregset_t *fpregsetp)
ps_err_e ps_get_thread_area(struct ps_prochandle *ph, lwpid_t lwpid, int idx, void **base)
static void store_gregs(struct regcache *regcache, int regnum)
void fill_gregset(const struct regcache *regcache, gdb_gregset_t *gregsetp, int regnum)
static void supply_gregset_reg(struct regcache *regcache, const gdb_gregset_t *gregsetp, int regnum)
void supply_gregset(struct regcache *regcache, const gdb_gregset_t *gregsetp)
GDB_GREGSET_T gdb_gregset_t
xtensa_elf_greg_t windowstart
GDB_FPREGSET_T gdb_fpregset_t
xtensa_elf_greg_t threadptr
void linux_nat_add_target(struct target_ops *t)
xtensa_elf_greg_t windowbase
struct target_ops * linux_target(void)
long ptid_get_lwp(const ptid_t &ptid)
static void xtensa_linux_fetch_inferior_registers(struct target_ops *ops, struct regcache *regcache, int regnum)
void(* to_fetch_registers)(struct target_ops *, struct regcache *, int) TARGET_DEFAULT_IGNORE()
void fill_fpregset(const struct regcache *regcache, gdb_fpregset_t *fpregsetp, int regnum)
void void void void void void void void void perror_with_name(const char *string) ATTRIBUTE_NORETURN
static void xtensa_linux_store_inferior_registers(struct target_ops *ops, struct regcache *regcache, int regnum)
void regcache_raw_supply(struct regcache *regcache, int regnum, const void *buf)
void regcache_raw_collect(const struct regcache *regcache, int regnum, void *buf)
int gdbarch_pc_regnum(struct gdbarch *gdbarch)
void(* to_store_registers)(struct target_ops *, struct regcache *, int) TARGET_DEFAULT_NORETURN(noprocess())