GDB (xrefs)
|
#include "defs.h"
#include "inferior.h"
#include "target.h"
#include "gdbcore.h"
#include "symfile.h"
#include "objfiles.h"
#include "bfd.h"
#include "gdb-stabs.h"
#include "regcache.h"
#include "arch-utils.h"
#include "inf-child.h"
#include "inf-ptrace.h"
#include "ppc-tdep.h"
#include "rs6000-aix-tdep.h"
#include "exec.h"
#include "observable.h"
#include "xcoffread.h"
#include <sys/ptrace.h>
#include <sys/reg.h>
#include <sys/dir.h>
#include <sys/user.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <a.out.h>
#include <sys/file.h>
#include <sys/stat.h>
#include "gdb_bfd.h"
#include <sys/core.h>
#include <sys/ldr.h>
#include <sys/systemcfg.h>
#include <procinfo.h>
#include <sys/types.h>
#include <sys/context.h>
Go to the source code of this file.
Classes | |
class | rs6000_nat_target |
Macros | |
#define | __LDINFO_PTRACE32__ /* for __ld_info32 */ |
#define | __LDINFO_PTRACE64__ /* for __ld_info64 */ |
#define | ARCH64() 0 |
Functions | |
static void | aix_remember_child (pid_t pid) |
static void | aix_remember_parent (pid_t pid) |
static pid_t | find_my_aix_parent (pid_t child_pid) |
static pid_t | has_my_aix_child_reported (pid_t parent_pid) |
static pid_t | has_my_aix_parent_reported (pid_t child_pid) |
static int | regmap (struct gdbarch *gdbarch, int regno, int *isfloat) |
static int | rs6000_ptrace32 (int req, int id, int *addr, int data, int *buf) |
static int | rs6000_ptrace64 (int req, int id, long long addr, int data, void *buf) |
static void | store_vsx_register_aix (struct regcache *regcache, int regno) |
static void | store_altivec_register_aix (struct regcache *regcache, int regno) |
static void | supply_vrregset_aix (struct regcache *regcache, __vmx_context_t *vmx) |
static void | fetch_altivec_registers_aix (struct regcache *regcache) |
static void | supply_vsxregset_aix (struct regcache *regcache, __vsx_context_t *vsx) |
static void | fetch_vsx_registers_aix (struct regcache *regcache) |
static void | fetch_register (struct regcache *regcache, int regno) |
static void | store_register (struct regcache *regcache, int regno) |
static gdb::byte_vector | rs6000_ptrace_ldinfo (ptid_t ptid) |
void | _initialize_rs6000_nat () |
Variables | |
static rs6000_nat_target | the_rs6000_nat_target |
static std::list< pid_t > | aix_pending_parent |
static std::list< pid_t > | aix_pending_children |
#define __LDINFO_PTRACE32__ /* for __ld_info32 */ |
Definition at line 52 of file rs6000-aix-nat.c.
#define __LDINFO_PTRACE64__ /* for __ld_info64 */ |
Definition at line 53 of file rs6000-aix-nat.c.
#define ARCH64 | ( | ) | 0 |
Definition at line 78 of file rs6000-aix-nat.c.
Referenced by fetch_altivec_registers_aix(), fetch_register(), fetch_vsx_registers_aix(), rs6000_nat_target::follow_fork(), rs6000_nat_target::post_startup_inferior(), rs6000_nat_target::read_description(), rs6000_ptrace_ldinfo(), store_altivec_register_aix(), store_register(), store_vsx_register_aix(), and rs6000_nat_target::xfer_partial().
void _initialize_rs6000_nat | ( | ) |
Definition at line 1057 of file rs6000-aix-nat.c.
References add_inf_child_target(), and the_rs6000_nat_target.
|
static |
Definition at line 134 of file rs6000-aix-nat.c.
References aix_pending_children, and pid.
Referenced by rs6000_nat_target::wait().
|
static |
Definition at line 140 of file rs6000-aix-nat.c.
References aix_pending_parent, and pid.
Referenced by rs6000_nat_target::wait().
|
static |
Definition at line 379 of file rs6000-aix-nat.c.
References ARCH64, current_inferior(), pid, inferior::pid, rs6000_ptrace32(), rs6000_ptrace64(), and supply_vrregset_aix().
Referenced by fetch_register(), and rs6000_nat_target::fetch_registers().
|
static |
Definition at line 483 of file rs6000-aix-nat.c.
References altivec_register_p(), reg_buffer::arch(), ARCH64, fetch_altivec_registers_aix(), fetch_vsx_registers_aix(), gdb_printf(), gdb_stderr, gdbarch_num_regs(), pid, PPC_MAX_REGISTER_SIZE, regcache::ptid(), reg_buffer::raw_supply(), register_size(), regmap, rs6000_ptrace32(), rs6000_ptrace64(), and vsx_register_p().
Referenced by rs6000_nat_target::fetch_registers().
|
static |
Definition at line 417 of file rs6000-aix-nat.c.
References ARCH64, current_inferior(), pid, inferior::pid, rs6000_ptrace32(), rs6000_ptrace64(), and supply_vsxregset_aix().
Referenced by fetch_register(), and rs6000_nat_target::fetch_registers().
|
static |
Definition at line 148 of file rs6000-aix-nat.c.
Referenced by has_my_aix_parent_reported().
|
static |
Definition at line 164 of file rs6000-aix-nat.c.
References aix_pending_children.
Referenced by rs6000_nat_target::wait().
|
static |
Definition at line 186 of file rs6000-aix-nat.c.
References aix_pending_parent, and find_my_aix_parent().
Referenced by rs6000_nat_target::wait().
|
static |
Definition at line 206 of file rs6000-aix-nat.c.
References gdbarch_pc_regnum(), MSR, ppc_gdbarch_tdep::ppc_cr_regnum, ppc_gdbarch_tdep::ppc_ctr_regnum, ppc_gdbarch_tdep::ppc_fp0_regnum, ppc_gdbarch_tdep::ppc_fpscr_regnum, ppc_gdbarch_tdep::ppc_gp0_regnum, ppc_gdbarch_tdep::ppc_lr_regnum, ppc_gdbarch_tdep::ppc_mq_regnum, ppc_num_fprs, ppc_num_gprs, ppc_gdbarch_tdep::ppc_ps_regnum, and ppc_gdbarch_tdep::ppc_xer_regnum.
|
static |
Definition at line 245 of file rs6000-aix-nat.c.
References ptrace.
Referenced by fetch_altivec_registers_aix(), fetch_register(), fetch_vsx_registers_aix(), rs6000_nat_target::follow_fork(), rs6000_nat_target::post_startup_inferior(), rs6000_ptrace_ldinfo(), store_altivec_register_aix(), store_register(), store_vsx_register_aix(), and rs6000_nat_target::xfer_partial().
|
static |
Definition at line 262 of file rs6000-aix-nat.c.
Referenced by fetch_altivec_registers_aix(), fetch_register(), fetch_vsx_registers_aix(), rs6000_nat_target::follow_fork(), rs6000_nat_target::post_startup_inferior(), rs6000_ptrace_ldinfo(), store_altivec_register_aix(), store_register(), store_vsx_register_aix(), and rs6000_nat_target::xfer_partial().
|
static |
Definition at line 996 of file rs6000-aix-nat.c.
References ARCH64, pid, rs6000_ptrace32(), and rs6000_ptrace64().
Referenced by rs6000_nat_target::xfer_shared_libraries().
|
static |
Definition at line 323 of file rs6000-aix-nat.c.
References reg_buffer::arch(), ARCH64, inferior_ptid, pid, ppc_gdbarch_tdep::ppc_vr0_regnum, reg_buffer::raw_collect(), rs6000_ptrace32(), and rs6000_ptrace64().
Referenced by store_register().
|
static |
Definition at line 556 of file rs6000-aix-nat.c.
References altivec_register_p(), reg_buffer::arch(), ARCH64, gdb_printf(), gdb_stderr, gdbarch_num_regs(), pid, PPC_MAX_REGISTER_SIZE, regcache::ptid(), reg_buffer::raw_collect(), register_size(), regmap, rs6000_ptrace32(), rs6000_ptrace64(), store_altivec_register_aix(), store_vsx_register_aix(), and vsx_register_p().
Referenced by rs6000_nat_target::store_registers().
|
static |
Definition at line 283 of file rs6000-aix-nat.c.
References reg_buffer::arch(), ARCH64, inferior_ptid, pid, ppc_gdbarch_tdep::ppc_vsr0_upper_regnum, reg_buffer::raw_collect(), rs6000_ptrace32(), and rs6000_ptrace64().
Referenced by store_register().
|
static |
Definition at line 362 of file rs6000-aix-nat.c.
References reg_buffer::arch(), ppc_gdbarch_tdep::ppc_vr0_regnum, ppc_gdbarch_tdep::ppc_vrsave_regnum, and reg_buffer::raw_supply().
Referenced by fetch_altivec_registers_aix().
|
static |
Definition at line 404 of file rs6000-aix-nat.c.
References reg_buffer::arch(), ppc_num_vshrs, ppc_gdbarch_tdep::ppc_vsr0_upper_regnum, and reg_buffer::raw_supply().
Referenced by fetch_vsx_registers_aix().
|
static |
Definition at line 131 of file rs6000-aix-nat.c.
Referenced by aix_remember_child(), and has_my_aix_child_reported().
|
static |
Definition at line 125 of file rs6000-aix-nat.c.
Referenced by aix_remember_parent(), and has_my_aix_parent_reported().
|
static |
Definition at line 120 of file rs6000-aix-nat.c.
Referenced by _initialize_rs6000_nat().