GDB (xrefs)
|
#include "defs.h"
#include "frame.h"
#include "inferior.h"
#include "gdbcore.h"
#include "regcache.h"
#include "target.h"
#include "linux-nat.h"
#include <sys/types.h>
#include <signal.h>
#include <sys/user.h>
#include <sys/ioctl.h>
#include "gdb_wait.h"
#include <fcntl.h>
#include <sys/procfs.h>
#include <sys/ptrace.h>
#include <asm/ptrace.h>
#include "gregset.h"
#include "xtensa-tdep.h"
#include "xtensa-xtregs.c"
Go to the source code of this file.
Macros | |
#define | GET_THREAD_ID(PTID) get_thread_id (PTID) |
Functions | |
static int | get_thread_id (ptid_t ptid) |
void | fill_gregset (const struct regcache *regcache, gdb_gregset_t *gregsetp, int regnum) |
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) |
void | fill_fpregset (const struct regcache *regcache, gdb_fpregset_t *fpregsetp, int regnum) |
void | supply_fpregset (struct regcache *regcache, const gdb_fpregset_t *fpregsetp) |
static void | fetch_gregs (struct regcache *regcache, int regnum) |
static void | store_gregs (struct regcache *regcache, int regnum) |
static void | fetch_xtregs (struct regcache *regcache, int regnum) |
static void | store_xtregs (struct regcache *regcache, int regnum) |
void | xtensa_linux_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum) |
void | xtensa_linux_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum) |
void | _initialize_xtensa_linux_nat (void) |
Variables | |
static int | xtreg_lo |
static int | xtreg_high |
#define GET_THREAD_ID | ( | PTID | ) | get_thread_id (PTID) |
Definition at line 53 of file xtensa-linux-nat.c.
Referenced by fetch_gregs(), fetch_xtregs(), store_gregs(), and store_xtregs().
void _initialize_xtensa_linux_nat | ( | void | ) |
Definition at line 296 of file xtensa-linux-nat.c.
References xtensa_regtable_t::gdb_regnum, linux_nat_add_target(), linux_target(), xtensa_regtable_t::name, target_ops::to_fetch_registers, target_ops::to_store_registers, xtensa_linux_fetch_inferior_registers(), xtensa_linux_store_inferior_registers(), xtensa_regmap_table, xtreg_high, and xtreg_lo.
Definition at line 182 of file xtensa-linux-nat.c.
References _, GET_THREAD_ID, inferior_ptid, perror_with_name(), ptrace(), PTRACE_GETREGS, and supply_gregset_reg().
Referenced by xtensa_linux_fetch_inferior_registers().
Definition at line 229 of file xtensa-linux-nat.c.
References _, xtensa_regtable_t::gdb_regnum, GET_THREAD_ID, inferior_ptid, xtensa_regtable_t::name, perror_with_name(), ptrace(), xtensa_regtable_t::ptrace_offset, regcache_raw_supply(), XTENSA_ELF_XTREG_SIZE, and xtensa_regmap_table.
Referenced by xtensa_linux_fetch_inferior_registers().
void fill_fpregset | ( | const struct regcache * | regcache, |
gdb_fpregset_t * | fpregsetp, | ||
int | regnum | ||
) |
Definition at line 165 of file xtensa-linux-nat.c.
References aarch64_linux_fpregset, AARCH64_LINUX_SIZEOF_FPREGSET, and regcache_collect_regset().
void fill_gregset | ( | const struct regcache * | regcache, |
gdb_gregset_t * | gregsetp, | ||
int | regnum | ||
) |
Definition at line 56 of file xtensa-linux-nat.c.
References aarch64_linux_gregset, AARCH64_LINUX_SIZEOF_GREGSET, xtensa_elf_gregset_t::ar, gdbarch_tdep::ar_base, gdbarch_pc_regnum(), gdbarch_ps_regnum(), gdbarch_tdep(), get_regcache_arch(), xtensa_elf_gregset_t::lbeg, xtensa_elf_gregset_t::lcount, xtensa_elf_gregset_t::lend, gdbarch_tdep::num_aregs, xtensa_elf_gregset_t::pc, xtensa_elf_gregset_t::ps, regcache_collect_regset(), regcache_raw_collect(), xtensa_elf_gregset_t::sar, xtensa_elf_gregset_t::windowbase, and xtensa_elf_gregset_t::windowstart.
Referenced by store_gregs().
Definition at line 46 of file xtensa-linux-nat.c.
References ptid_get_lwp(), and ptid_get_pid().
Definition at line 201 of file xtensa-linux-nat.c.
References _, fill_gregset(), GET_THREAD_ID, inferior_ptid, perror_with_name(), ptrace(), PTRACE_GETREGS, and PTRACE_SETREGS.
Referenced by xtensa_linux_store_inferior_registers().
Definition at line 245 of file xtensa-linux-nat.c.
References _, xtensa_regtable_t::gdb_regnum, GET_THREAD_ID, inferior_ptid, xtensa_regtable_t::name, perror_with_name(), ptrace(), xtensa_regtable_t::ptrace_offset, regcache_raw_collect(), XTENSA_ELF_XTREG_SIZE, and xtensa_regmap_table.
Referenced by xtensa_linux_store_inferior_registers().
void supply_fpregset | ( | struct regcache * | regcache, |
const gdb_fpregset_t * | fpregsetp | ||
) |
Definition at line 172 of file xtensa-linux-nat.c.
References aarch64_linux_fpregset, AARCH64_LINUX_SIZEOF_FPREGSET, and regcache_supply_regset().
void supply_gregset | ( | struct regcache * | regcache, |
const gdb_gregset_t * | gregsetp | ||
) |
Definition at line 159 of file xtensa-linux-nat.c.
References aarch64_linux_gregset, AARCH64_LINUX_SIZEOF_GREGSET, regcache_supply_regset(), and supply_gregset_reg().
void supply_gregset_reg | ( | struct regcache * | regcache, |
const gdb_gregset_t * | gregsetp, | ||
int | regnum | ||
) |
Definition at line 107 of file xtensa-linux-nat.c.
References xtensa_elf_gregset_t::ar, gdbarch_tdep::ar_base, gdbarch_pc_regnum(), gdbarch_ps_regnum(), gdbarch_tdep(), get_regcache_arch(), xtensa_elf_gregset_t::lbeg, xtensa_elf_gregset_t::lcount, xtensa_elf_gregset_t::lend, gdbarch_tdep::num_aregs, xtensa_elf_gregset_t::pc, xtensa_elf_gregset_t::ps, regcache_raw_supply(), xtensa_elf_gregset_t::sar, xtensa_elf_gregset_t::windowbase, and xtensa_elf_gregset_t::windowstart.
Referenced by fetch_gregs(), and supply_gregset().
void xtensa_linux_fetch_inferior_registers | ( | struct target_ops * | ops, |
struct regcache * | regcache, | ||
int | regnum | ||
) |
Definition at line 264 of file xtensa-linux-nat.c.
References fetch_gregs(), fetch_xtregs(), xtreg_high, and xtreg_lo.
Referenced by _initialize_xtensa_linux_nat().
void xtensa_linux_store_inferior_registers | ( | struct target_ops * | ops, |
struct regcache * | regcache, | ||
int | regnum | ||
) |
Definition at line 279 of file xtensa-linux-nat.c.
References store_gregs(), store_xtregs(), xtreg_high, and xtreg_lo.
Referenced by _initialize_xtensa_linux_nat().
|
static |
Definition at line 223 of file xtensa-linux-nat.c.
Referenced by _initialize_xtensa_linux_nat(), xtensa_linux_fetch_inferior_registers(), and xtensa_linux_store_inferior_registers().
|
static |
Definition at line 222 of file xtensa-linux-nat.c.
Referenced by _initialize_xtensa_linux_nat(), xtensa_linux_fetch_inferior_registers(), and xtensa_linux_store_inferior_registers().