GDB (xrefs)
|
#include "defs.h"
#include "regcache.h"
#include "inferior.h"
#include "target.h"
#include "linux-nat.h"
#include "auxv.h"
#include "gregset.h"
#include "regset.h"
#include "nat/linux-ptrace.h"
#include "s390-linux-tdep.h"
#include "elf/common.h"
#include <asm/ptrace.h>
#include <sys/ptrace.h>
#include <asm/types.h>
#include <sys/procfs.h>
#include <sys/ucontext.h>
#include <elf.h>
Go to the source code of this file.
Classes | |
struct | arch_lwp_info |
struct | watch_area |
Variables | |
static int | have_regset_last_break = 0 |
static int | have_regset_system_call = 0 |
static int | have_regset_tdb = 0 |
static int | have_regset_vxrs = 0 |
static struct watch_area * | watch_base = NULL |
void _initialize_s390_nat | ( | void | ) |
Definition at line 720 of file s390-linux-nat.c.
References linux_nat_add_target(), linux_nat_set_new_thread(), linux_nat_set_prepare_to_resume(), linux_target(), s390_auxv_parse(), s390_can_use_hw_breakpoint(), s390_insert_watchpoint(), s390_linux_fetch_inferior_registers(), s390_linux_store_inferior_registers(), s390_new_thread(), s390_prepare_to_resume(), s390_read_description(), s390_region_ok_for_hw_watchpoint(), s390_remove_watchpoint(), s390_stopped_by_watchpoint(), target_ops::to_auxv_parse, target_ops::to_can_use_hw_breakpoint, target_ops::to_fetch_registers, target_ops::to_have_continuable_watchpoint, target_ops::to_insert_watchpoint, target_ops::to_read_description, target_ops::to_region_ok_for_hw_watchpoint, target_ops::to_remove_watchpoint, target_ops::to_stopped_by_watchpoint, and target_ops::to_store_registers.
Definition at line 339 of file s390-linux-nat.c.
References ptrace(), and PTRACE_GETREGSET.
Referenced by s390_read_description().
Definition at line 255 of file s390-linux-nat.c.
References _, perror_with_name(), ptrace(), and supply_fpregset().
Referenced by s390_linux_fetch_inferior_registers().
Definition at line 218 of file s390-linux-nat.c.
References _, perror_with_name(), ptrace(), and supply_gregset().
Referenced by s390_linux_fetch_inferior_registers().
|
static |
Definition at line 294 of file s390-linux-nat.c.
References _, perror_with_name(), ptrace(), PTRACE_GETREGSET, and regcache_supply_regset().
Referenced by s390_linux_fetch_inferior_registers().
void fill_fpregset | ( | const struct regcache * | regcache, |
fpregset_t * | regp, | ||
int | regno | ||
) |
Definition at line 197 of file s390-linux-nat.c.
References regcache_collect_regset(), and s390_fpregset.
Referenced by store_fpregs().
Definition at line 137 of file s390-linux-nat.c.
References gdbarch::byte_order, extract_unsigned_integer(), gdbarch_byte_order(), gdbarch_ptr_bit(), get_regcache_arch(), regcache_collect_regset(), regcache_raw_collect(), s390_gregset, S390_PSWA_REGNUM, S390_PSWM_REGNUM, and store_unsigned_integer().
Referenced by store_regs().
|
static |
Definition at line 640 of file s390-linux-nat.c.
References extract_unsigned_integer(), gdbarch_byte_order(), s390_target_wordsize(), and target_gdbarch().
Referenced by _initialize_s390_nat().
|
static |
Definition at line 607 of file s390-linux-nat.c.
References bp_hardware_watchpoint.
Referenced by _initialize_s390_nat().
|
static |
Definition at line 205 of file s390-linux-nat.c.
References inferior_ptid, ptid_get_lwp(), and ptid_get_pid().
Referenced by s390_linux_fetch_inferior_registers(), s390_linux_store_inferior_registers(), s390_read_description(), s390_stopped_by_watchpoint(), and s390_target_wordsize().
|
static |
Definition at line 556 of file s390-linux-nat.c.
References ALL_LWPS, watch_area::hi_addr, watch_area::lo_addr, watch_area::next, s390_refresh_per_info(), watch_base, and xmalloc().
Referenced by _initialize_s390_nat().
|
static |
Definition at line 356 of file s390-linux-nat.c.
References fetch_fpregs(), fetch_regs(), fetch_regset(), gdbarch_ptr_bit(), get_regcache_arch(), have_regset_last_break, have_regset_system_call, have_regset_tdb, have_regset_vxrs, s390_inferior_tid(), S390_IS_FPREGSET_REGNUM, S390_IS_GREGSET_REGNUM, S390_IS_TDBREGSET_REGNUM, S390_LAST_BREAK_REGNUM, s390_last_break_regset, s390_sizeof_tdbregset, S390_SYSTEM_CALL_REGNUM, s390_system_call_regset, s390_tdb_regset, S390_V0_LOWER_REGNUM, S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V31_REGNUM, s390_vxrs_high_regset, s390_vxrs_low_regset, and s390x_last_break_regset.
Referenced by _initialize_s390_nat().
|
static |
Definition at line 399 of file s390-linux-nat.c.
References have_regset_system_call, have_regset_vxrs, s390_inferior_tid(), S390_IS_FPREGSET_REGNUM, S390_IS_GREGSET_REGNUM, S390_SYSTEM_CALL_REGNUM, s390_system_call_regset, S390_V0_LOWER_REGNUM, S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V31_REGNUM, s390_vxrs_high_regset, s390_vxrs_low_regset, store_fpregs(), store_regs(), and store_regset().
Referenced by _initialize_s390_nat().
|
static |
Definition at line 549 of file s390-linux-nat.c.
References lwp_info::arch_private, and arch_lwp_info::per_info_changed.
Referenced by _initialize_s390_nat().
|
static |
Definition at line 482 of file s390-linux-nat.c.
References _, lwp_info::arch_private, watch_area::hi_addr, watch_area::lo_addr, max, min, watch_area::next, arch_lwp_info::per_info_changed, perror_with_name(), lwp_info::ptid, ptid_get_lwp(), ptid_get_pid(), and ptrace().
Referenced by _initialize_s390_nat().
|
static |
Definition at line 663 of file s390-linux-nat.c.
References check_regset(), current_target, have_regset_last_break, have_regset_system_call, have_regset_tdb, have_regset_vxrs, HWCAP_S390_HIGH_GPRS, HWCAP_S390_TE, HWCAP_S390_VX, s390_inferior_tid(), s390_sizeof_tdbregset, s390_target_wordsize(), target_auxv_search(), tdesc_s390_linux32, tdesc_s390_linux32v1, tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1, tdesc_s390_linux64v2, tdesc_s390_te_linux64, tdesc_s390_tevx_linux64, tdesc_s390_vx_linux64, tdesc_s390x_linux64, tdesc_s390x_linux64v1, tdesc_s390x_linux64v2, tdesc_s390x_te_linux64, tdesc_s390x_tevx_linux64, and tdesc_s390x_vx_linux64.
Referenced by _initialize_s390_nat().
|
static |
Definition at line 535 of file s390-linux-nat.c.
References lwp_info::arch_private, linux_stop_lwp(), arch_lwp_info::per_info_changed, and lwp_info::stopped.
Referenced by s390_insert_watchpoint(), and s390_remove_watchpoint().
|
static |
Definition at line 614 of file s390-linux-nat.c.
Referenced by _initialize_s390_nat().
|
static |
Definition at line 578 of file s390-linux-nat.c.
References ALL_LWPS, fprintf_unfiltered(), gdb_stderr, watch_area::next, s390_refresh_per_info(), and xfree().
Referenced by _initialize_s390_nat().
|
static |
Definition at line 449 of file s390-linux-nat.c.
References _, perror_with_name(), ptrace(), and s390_inferior_tid().
Referenced by _initialize_s390_nat().
|
static |
Definition at line 621 of file s390-linux-nat.c.
References gdb.printing::long, ptrace(), s390_inferior_tid(), and wordsize.
Referenced by s390_auxv_parse(), and s390_read_description().
Definition at line 272 of file s390-linux-nat.c.
References _, fill_fpregset(), perror_with_name(), and ptrace().
Referenced by s390_linux_store_inferior_registers().
Definition at line 235 of file s390-linux-nat.c.
References _, fill_gregset(), perror_with_name(), and ptrace().
Referenced by s390_linux_store_inferior_registers().
|
static |
Definition at line 318 of file s390-linux-nat.c.
References _, perror_with_name(), ptrace(), PTRACE_GETREGSET, PTRACE_SETREGSET, and regcache_collect_regset().
Referenced by s390_linux_store_inferior_registers().
void supply_fpregset | ( | struct regcache * | regcache, |
const fpregset_t * | regp | ||
) |
Definition at line 187 of file s390-linux-nat.c.
References regcache_supply_regset(), and s390_fpregset.
Referenced by fetch_fpregs().
Definition at line 103 of file s390-linux-nat.c.
References gdbarch::byte_order, extract_unsigned_integer(), gdbarch_byte_order(), gdbarch_ptr_bit(), get_regcache_arch(), regcache_raw_supply(), regcache_supply_regset(), s390_gregset, S390_PSWA_REGNUM, S390_PSWM_REGNUM, and store_unsigned_integer().
Referenced by fetch_regs().
|
static |
Definition at line 50 of file s390-linux-nat.c.
Referenced by s390_linux_fetch_inferior_registers(), and s390_read_description().
|
static |
Definition at line 51 of file s390-linux-nat.c.
Referenced by s390_linux_fetch_inferior_registers(), s390_linux_store_inferior_registers(), and s390_read_description().
|
static |
Definition at line 52 of file s390-linux-nat.c.
Referenced by s390_linux_fetch_inferior_registers(), and s390_read_description().
|
static |
Definition at line 53 of file s390-linux-nat.c.
Referenced by s390_linux_fetch_inferior_registers(), s390_linux_store_inferior_registers(), and s390_read_description().
|
static |
Definition at line 446 of file s390-linux-nat.c.
Referenced by s390_insert_watchpoint().