GDB (xrefs)
|
#include "defs.h"
#include "inferior.h"
#include "gdbcore.h"
#include "regcache.h"
#include "linux-nat.h"
#include "target-descriptions.h"
#include "auxv.h"
#include "gdbcmd.h"
#include "aarch64-nat.h"
#include "aarch64-tdep.h"
#include "aarch64-linux-tdep.h"
#include "aarch32-linux-nat.h"
#include "aarch32-tdep.h"
#include "arch/arm.h"
#include "nat/aarch64-linux.h"
#include "nat/aarch64-linux-hw-point.h"
#include "nat/aarch64-scalable-linux-ptrace.h"
#include "elf/external.h"
#include "elf/common.h"
#include "nat/gdb_ptrace.h"
#include <sys/utsname.h>
#include <asm/ptrace.h>
#include "gregset.h"
#include "linux-tdep.h"
#include "arm-tdep.h"
#include "gdb_proc_service.h"
#include "arch-utils.h"
#include "arch/aarch64-mte-linux.h"
#include "nat/aarch64-mte-linux-ptrace.h"
#include "arch/aarch64-scalable-linux.h"
#include <string.h>
Go to the source code of this file.
Classes | |
class | aarch64_linux_nat_target |
Macros | |
#define | TRAP_HWBKPT 0x0004 |
Variables | |
static aarch64_linux_nat_target | the_aarch64_linux_nat_target |
#define TRAP_HWBKPT 0x0004 |
Definition at line 63 of file aarch64-linux-nat.c.
Referenced by s390_linux_nat_target::stopped_by_watchpoint(), and aarch64_linux_nat_target::stopped_data_address().
void _initialize_aarch64_linux_nat | ( | ) |
Definition at line 1079 of file aarch64-linux-nat.c.
References aarch64_initialize_hw_point(), add_inf_child_target(), linux_target, and the_aarch64_linux_nat_target.
|
static |
Definition at line 625 of file aarch64-linux-nat.c.
References reg_buffer::arch(), ARM_D0_REGNUM, ARM_F0_REGNUM, ARM_FPSCR_REGNUM, ARM_PS_REGNUM, fetch_fpregs_from_thread(), fetch_gregs_from_thread(), and arm_gdbarch_tdep::vfp_register_count.
Referenced by aarch64_linux_nat_target::fetch_registers().
|
static |
Definition at line 724 of file aarch64-linux-nat.c.
References reg_buffer::arch(), ARM_D0_REGNUM, ARM_F0_REGNUM, ARM_FPSCR_REGNUM, ARM_PS_REGNUM, store_fpregs_to_thread(), store_gregs_to_thread(), and arm_gdbarch_tdep::vfp_register_count.
Referenced by aarch64_linux_nat_target::store_registers().
|
static |
Definition at line 555 of file aarch64-linux-nat.c.
References AARCH64_FPCR_REGNUM, AARCH64_PAUTH_CMASK_REGNUM, AARCH64_PAUTH_DMASK_REGNUM, AARCH64_SVE_VG_REGNUM, AARCH64_V0_REGNUM, reg_buffer::arch(), fetch_fpregs_from_thread(), fetch_gregs_from_thread(), fetch_mteregs_from_thread(), fetch_pauth_masks_from_thread(), fetch_sveregs_from_thread(), fetch_tlsregs_from_thread(), fetch_za_from_thread(), fetch_zt_from_thread(), aarch64_gdbarch_tdep::has_mte(), aarch64_gdbarch_tdep::has_pauth(), aarch64_gdbarch_tdep::has_sme(), aarch64_gdbarch_tdep::has_sme2(), aarch64_gdbarch_tdep::has_sve(), aarch64_gdbarch_tdep::has_tls(), aarch64_gdbarch_tdep::mte_reg_base, aarch64_gdbarch_tdep::pauth_reg_base, aarch64_gdbarch_tdep::sme2_zt0_regnum, aarch64_gdbarch_tdep::sme_reg_base, aarch64_gdbarch_tdep::tls_register_count, and aarch64_gdbarch_tdep::tls_regnum_base.
Referenced by aarch64_linux_nat_target::fetch_registers().
|
static |
Definition at line 661 of file aarch64-linux-nat.c.
References AARCH64_FPCR_REGNUM, AARCH64_SVE_VG_REGNUM, AARCH64_V0_REGNUM, reg_buffer::arch(), aarch64_gdbarch_tdep::has_mte(), aarch64_gdbarch_tdep::has_sme(), aarch64_gdbarch_tdep::has_sme2(), aarch64_gdbarch_tdep::has_sve(), aarch64_gdbarch_tdep::has_tls(), aarch64_gdbarch_tdep::mte_reg_base, aarch64_gdbarch_tdep::sme2_zt0_regnum, aarch64_gdbarch_tdep::sme_reg_base, store_fpregs_to_thread(), store_gregs_to_thread(), store_mteregs_to_thread(), store_sveregs_to_thread(), store_tlsregs_to_thread(), store_za_to_thread(), store_zt_to_thread(), aarch64_gdbarch_tdep::tls_register_count, and aarch64_gdbarch_tdep::tls_regnum_base.
Referenced by aarch64_linux_nat_target::store_registers().
|
static |
Definition at line 211 of file aarch64-linux-nat.c.
References aarch32_vfp_regcache_supply(), AARCH64_FPCR_REGNUM, AARCH64_FPSR_REGNUM, AARCH64_V0_REGNUM, AARCH64_V31_REGNUM, reg_buffer::arch(), ARM_VFP3_REGS_SIZE, gdb_static_assert(), gdbarch_bfd_arch_info(), regcache::ptid(), ptrace, PTRACE_GETREGSET, and reg_buffer::raw_supply().
Referenced by aarch32_fetch_registers(), and aarch64_fetch_registers().
|
static |
Definition at line 131 of file aarch64-linux-nat.c.
References aarch32_gp_regcache_supply(), AARCH64_CPSR_REGNUM, AARCH64_X0_REGNUM, reg_buffer::arch(), gdb_static_assert(), gdbarch_bfd_arch_info(), regcache::ptid(), ptrace, PTRACE_GETREGSET, and reg_buffer::raw_supply().
Referenced by aarch32_fetch_registers(), and aarch64_fetch_registers().
|
static |
Definition at line 440 of file aarch64-linux-nat.c.
References reg_buffer::arch(), get_ptrace_pid(), aarch64_gdbarch_tdep::mte_reg_base, regcache::ptid(), ptrace, PTRACE_GETREGSET, and reg_buffer::raw_supply().
Referenced by aarch64_fetch_registers().
|
static |
Definition at line 414 of file aarch64-linux-nat.c.
References AARCH64_PAUTH_CMASK_REGNUM, AARCH64_PAUTH_DMASK_REGNUM, reg_buffer::arch(), aarch64_gdbarch_tdep::pauth_reg_base, regcache::ptid(), ptrace, PTRACE_GETREGSET, and reg_buffer::raw_supply().
Referenced by aarch64_fetch_registers().
|
static |
Definition at line 324 of file aarch64-linux-nat.c.
References aarch64_sve_regs_copy_to_reg_buf(), and regcache::ptid().
Referenced by aarch64_fetch_registers().
|
static |
Definition at line 494 of file aarch64-linux-nat.c.
References reg_buffer::arch(), get_ptrace_pid(), regcache::ptid(), ptrace, PTRACE_GETREGSET, reg_buffer::raw_supply(), aarch64_gdbarch_tdep::tls_register_count, and aarch64_gdbarch_tdep::tls_regnum_base.
Referenced by aarch64_fetch_registers().
|
static |
Definition at line 349 of file aarch64-linux-nat.c.
References aarch64_za_regs_copy_to_reg_buf(), reg_buffer::arch(), regcache::ptid(), aarch64_gdbarch_tdep::sme_svcr_regnum, aarch64_gdbarch_tdep::sme_svg_regnum, and aarch64_gdbarch_tdep::sme_za_regnum.
Referenced by aarch64_fetch_registers().
|
static |
Definition at line 384 of file aarch64-linux-nat.c.
References aarch64_zt_regs_copy_to_reg_buf(), reg_buffer::arch(), regcache::ptid(), and aarch64_gdbarch_tdep::sme2_zt0_regnum.
Referenced by aarch64_fetch_registers().
void fill_fpregset | ( | const struct regcache * | regcache, |
gdb_fpregset_t * | fpregsetp, | ||
int | regno ) |
Definition at line 785 of file aarch64-linux-nat.c.
References aarch64_linux_fpregset, AARCH64_LINUX_SIZEOF_FPREGSET, and regcache_collect_regset().
Referenced by procfs_do_thread_registers(), ps_lgetfpregs(), procfs_target::store_registers(), and sol_thread_target::store_registers().
void fill_gregset | ( | const struct regcache * | regcache, |
gdb_gregset_t * | gregsetp, | ||
int | regno ) |
Definition at line 761 of file aarch64-linux-nat.c.
References aarch64_linux_gregset, AARCH64_LINUX_SIZEOF_GREGSET, and regcache_collect_regset().
Referenced by procfs_target::make_corefile_notes(), procfs_do_thread_registers(), ps_lgetregs(), procfs_target::store_registers(), and sol_thread_target::store_registers().
ps_err_e ps_get_thread_area | ( | struct ps_prochandle * | ph, |
lwpid_t | lwpid, | ||
int | idx, | ||
void ** | base ) |
Definition at line 836 of file aarch64-linux-nat.c.
References aarch64_ps_get_thread_area(), gdbarch_bfd_arch_info(), and target_gdbarch().
|
static |
Definition at line 258 of file aarch64-linux-nat.c.
References aarch32_vfp_regcache_collect(), AARCH64_FPCR_REGNUM, AARCH64_FPSR_REGNUM, AARCH64_V0_REGNUM, AARCH64_V31_REGNUM, reg_buffer::arch(), ARM_VFP3_REGS_SIZE, gdb_static_assert(), gdbarch_bfd_arch_info(), reg_buffer::get_register_status(), regcache::ptid(), ptrace, PTRACE_GETREGSET, PTRACE_SETREGSET, and reg_buffer::raw_collect().
Referenced by aarch32_store_registers(), and aarch64_store_registers().
|
static |
Definition at line 169 of file aarch64-linux-nat.c.
References aarch32_gp_regcache_collect(), AARCH64_CPSR_REGNUM, AARCH64_X0_REGNUM, reg_buffer::arch(), gdb_static_assert(), gdbarch_bfd_arch_info(), reg_buffer::get_register_status(), regcache::ptid(), ptrace, PTRACE_GETREGSET, PTRACE_SETREGSET, and reg_buffer::raw_collect().
Referenced by aarch32_store_registers(), and aarch64_store_registers().
|
static |
Definition at line 465 of file aarch64-linux-nat.c.
References reg_buffer::arch(), get_ptrace_pid(), reg_buffer::get_register_status(), aarch64_gdbarch_tdep::mte_reg_base, regcache::ptid(), ptrace, PTRACE_SETREGSET, and reg_buffer::raw_collect().
Referenced by aarch64_store_registers().
|
static |
Definition at line 337 of file aarch64-linux-nat.c.
References aarch64_sve_regs_copy_from_reg_buf(), and regcache::ptid().
Referenced by aarch64_store_registers().
|
static |
Definition at line 522 of file aarch64-linux-nat.c.
References reg_buffer::arch(), get_ptrace_pid(), reg_buffer::get_register_status(), regcache::ptid(), ptrace, PTRACE_SETREGSET, reg_buffer::raw_collect(), aarch64_gdbarch_tdep::tls_register_count, and aarch64_gdbarch_tdep::tls_regnum_base.
Referenced by aarch64_store_registers().
|
static |
Definition at line 366 of file aarch64-linux-nat.c.
References aarch64_za_regs_copy_from_reg_buf(), reg_buffer::arch(), regcache::ptid(), aarch64_gdbarch_tdep::sme_svcr_regnum, aarch64_gdbarch_tdep::sme_svg_regnum, and aarch64_gdbarch_tdep::sme_za_regnum.
Referenced by aarch64_store_registers().
|
static |
Definition at line 399 of file aarch64-linux-nat.c.
References aarch64_zt_regs_copy_from_reg_buf(), reg_buffer::arch(), regcache::ptid(), and aarch64_gdbarch_tdep::sme2_zt0_regnum.
Referenced by aarch64_store_registers().
void supply_fpregset | ( | struct regcache * | regcache, |
const gdb_fpregset_t * | fpregsetp ) |
Definition at line 797 of file aarch64-linux-nat.c.
References aarch64_linux_fpregset, AARCH64_LINUX_SIZEOF_FPREGSET, and regcache_supply_regset().
Referenced by procfs_target::fetch_registers(), sol_thread_target::fetch_registers(), and ps_lsetfpregs().
void supply_gregset | ( | struct regcache * | regcache, |
const gdb_gregset_t * | gregsetp ) |
Definition at line 773 of file aarch64-linux-nat.c.
References aarch64_linux_gregset, AARCH64_LINUX_SIZEOF_GREGSET, and regcache_supply_regset().
Referenced by procfs_target::fetch_registers(), sol_thread_target::fetch_registers(), and ps_lsetregs().
|
static |
Definition at line 116 of file aarch64-linux-nat.c.
Referenced by _initialize_aarch64_linux_nat().