|
GDB (xrefs)
|
#include "defs.h"#include "inferior.h"#include "regcache.h"#include "elf/common.h"#include <sys/uio.h>#include "nat/gdb_ptrace.h"#include <asm/prctl.h>#include <sys/reg.h>#include "gregset.h"#include "gdb_proc_service.h"#include "amd64-nat.h"#include "linux-nat.h"#include "amd64-tdep.h"#include "amd64-linux-tdep.h"#include "i386-linux-tdep.h"#include "x86-xstate.h"#include "x86-linux-nat.h"#include "nat/linux-ptrace.h"#include "nat/amd64-linux-siginfo.h"Go to the source code of this file.
Macros | |
| #define | PTRACE_ARCH_PRCTL 30 |
Functions | |
| void | supply_gregset (struct regcache *regcache, const elf_gregset_t *gregsetp) |
| void | fill_gregset (const struct regcache *regcache, elf_gregset_t *gregsetp, int regnum) |
| void | supply_fpregset (struct regcache *regcache, const elf_fpregset_t *fpregsetp) |
| void | fill_fpregset (const struct regcache *regcache, elf_fpregset_t *fpregsetp, int regnum) |
| static void | amd64_linux_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum) |
| static void | amd64_linux_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum) |
| ps_err_e | ps_get_thread_area (struct ps_prochandle *ph, lwpid_t lwpid, int idx, void **base) |
| static int | amd64_linux_siginfo_fixup (siginfo_t *ptrace, gdb_byte *inf, int direction) |
| void | _initialize_amd64_linux_nat (void) |
Variables | |
| static int | amd64_linux_gregset32_reg_offset [] |
| #define PTRACE_ARCH_PRCTL 30 |
Definition at line 46 of file amd64-linux-nat.c.
Referenced by amd64_linux_fetch_inferior_registers(), amd64_linux_store_inferior_registers(), and ps_get_thread_area().
| void _initialize_amd64_linux_nat | ( | void | ) |
Definition at line 400 of file amd64-linux-nat.c.
References amd64_linux_fetch_inferior_registers(), amd64_linux_gregset32_reg_offset, amd64_linux_gregset_reg_offset, AMD64_LINUX_NUM_REGS, amd64_linux_siginfo_fixup(), amd64_linux_store_inferior_registers(), amd64_native_gregset32_num_regs, amd64_native_gregset32_reg_offset, amd64_native_gregset64_num_regs, amd64_native_gregset64_reg_offset, gdb_assert, I386_LINUX_NUM_REGS, linux_nat_set_siginfo_fixup(), target_ops::to_fetch_registers, target_ops::to_store_registers, x86_linux_add_target(), and x86_linux_create_target().
|
static |
Definition at line 134 of file amd64-linux-nat.c.
References _, AMD64_FSBASE_REGNUM, AMD64_GSBASE_REGNUM, amd64_native_gregset_supplies_p(), amd64_supply_fxsave(), amd64_supply_native_gregset(), amd64_supply_xsave(), regcache::arch(), have_ptrace_getregset, perror_with_name(), ptid_get_lwp(), ptid_get_pid(), ptrace(), PTRACE_ARCH_PRCTL, PTRACE_GETFPREGS, PTRACE_GETREGS, PTRACE_GETREGSET, regcache_get_ptid(), regcache_raw_supply(), regnum, selftests::ptid::tid, TRIBOOL_TRUE, and X86_XSTATE_MAX_SIZE.
Referenced by _initialize_amd64_linux_nat().
|
static |
Definition at line 382 of file amd64-linux-nat.c.
References amd64_linux_siginfo_fixup_common(), FIXUP_32, FIXUP_X32, gdbarch_addr_bit(), gdbarch_bfd_arch_info(), get_current_frame(), get_frame_arch(), and ptrace().
Referenced by _initialize_amd64_linux_nat().
|
static |
Definition at line 213 of file amd64-linux-nat.c.
References _, amd64_collect_fxsave(), amd64_collect_native_gregset(), amd64_collect_xsave(), AMD64_FSBASE_REGNUM, AMD64_GSBASE_REGNUM, amd64_native_gregset_supplies_p(), regcache::arch(), have_ptrace_getregset, perror_with_name(), ptid_get_lwp(), ptid_get_pid(), ptrace(), PTRACE_ARCH_PRCTL, PTRACE_GETFPREGS, PTRACE_GETREGS, PTRACE_GETREGSET, PTRACE_SETFPREGS, PTRACE_SETREGS, PTRACE_SETREGSET, regcache_get_ptid(), regcache_raw_collect(), regnum, selftests::ptid::tid, TRIBOOL_TRUE, and X86_XSTATE_MAX_SIZE.
Referenced by _initialize_amd64_linux_nat().
| void fill_fpregset | ( | const struct regcache * | regcache, |
| elf_fpregset_t * | fpregsetp, | ||
| int | regnum | ||
| ) |
Definition at line 120 of file amd64-linux-nat.c.
References amd64_collect_fxsave(), and regnum.
| void fill_gregset | ( | const struct regcache * | regcache, |
| elf_gregset_t * | gregsetp, | ||
| int | regnum | ||
| ) |
Definition at line 98 of file amd64-linux-nat.c.
References amd64_collect_native_gregset(), and regnum.
| ps_err_e ps_get_thread_area | ( | struct ps_prochandle * | ph, |
| lwpid_t | lwpid, | ||
| int | idx, | ||
| void ** | base | ||
| ) |
Definition at line 303 of file amd64-linux-nat.c.
References ELF_NGREG, gdb_assert, gdbarch_bfd_arch_info(), PS_BADADDR, PS_ERR, PS_OK, ptrace(), PTRACE_ARCH_PRCTL, target_gdbarch(), and x86_linux_get_thread_area().
| void supply_fpregset | ( | struct regcache * | regcache, |
| const elf_fpregset_t * | fpregsetp | ||
| ) |
Definition at line 110 of file amd64-linux-nat.c.
References amd64_supply_fxsave().
| void supply_gregset | ( | struct regcache * | regcache, |
| const elf_gregset_t * | gregsetp | ||
| ) |
Definition at line 88 of file amd64-linux-nat.c.
References amd64_supply_native_gregset().
|
static |
Definition at line 58 of file amd64-linux-nat.c.
Referenced by _initialize_amd64_linux_nat().
1.8.14