GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Functions | Variables
rs6000-aix-nat.c File Reference
#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
 

Macro Definition Documentation

◆ __LDINFO_PTRACE32__

#define __LDINFO_PTRACE32__   /* for __ld_info32 */

Definition at line 52 of file rs6000-aix-nat.c.

◆ __LDINFO_PTRACE64__

#define __LDINFO_PTRACE64__   /* for __ld_info64 */

Definition at line 53 of file rs6000-aix-nat.c.

◆ ARCH64

#define ARCH64 ( )    0

Function Documentation

◆ _initialize_rs6000_nat()

void _initialize_rs6000_nat ( )

Definition at line 1057 of file rs6000-aix-nat.c.

References add_inf_child_target(), and the_rs6000_nat_target.

◆ aix_remember_child()

static void aix_remember_child ( pid_t pid)
static

Definition at line 134 of file rs6000-aix-nat.c.

References aix_pending_children, and pid.

Referenced by rs6000_nat_target::wait().

◆ aix_remember_parent()

static void aix_remember_parent ( pid_t pid)
static

Definition at line 140 of file rs6000-aix-nat.c.

References aix_pending_parent, and pid.

Referenced by rs6000_nat_target::wait().

◆ fetch_altivec_registers_aix()

static void fetch_altivec_registers_aix ( struct regcache * regcache)
static

◆ fetch_register()

static void fetch_register ( struct regcache * regcache,
int regno )
static

◆ fetch_vsx_registers_aix()

static void fetch_vsx_registers_aix ( struct regcache * regcache)
static

◆ find_my_aix_parent()

static pid_t find_my_aix_parent ( pid_t child_pid)
static

Definition at line 148 of file rs6000-aix-nat.c.

Referenced by has_my_aix_parent_reported().

◆ has_my_aix_child_reported()

static pid_t has_my_aix_child_reported ( pid_t parent_pid)
static

Definition at line 164 of file rs6000-aix-nat.c.

References aix_pending_children.

Referenced by rs6000_nat_target::wait().

◆ has_my_aix_parent_reported()

static pid_t has_my_aix_parent_reported ( pid_t child_pid)
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().

◆ regmap()

static int regmap ( struct gdbarch * gdbarch,
int regno,
int * isfloat )
static

◆ rs6000_ptrace32()

static int rs6000_ptrace32 ( int req,
int id,
int * addr,
int data,
int * buf )
static

◆ rs6000_ptrace64()

static int rs6000_ptrace64 ( int req,
int id,
long long addr,
int data,
void * buf )
static

◆ rs6000_ptrace_ldinfo()

static gdb::byte_vector rs6000_ptrace_ldinfo ( ptid_t ptid)
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().

◆ store_altivec_register_aix()

static void store_altivec_register_aix ( struct regcache * regcache,
int regno )
static

◆ store_register()

static void store_register ( struct regcache * regcache,
int regno )
static

◆ store_vsx_register_aix()

static void store_vsx_register_aix ( struct regcache * regcache,
int regno )
static

◆ supply_vrregset_aix()

static void supply_vrregset_aix ( struct regcache * regcache,
__vmx_context_t * vmx )
static

◆ supply_vsxregset_aix()

static void supply_vsxregset_aix ( struct regcache * regcache,
__vsx_context_t * vsx )
static

Variable Documentation

◆ aix_pending_children

std::list<pid_t> aix_pending_children
static

Definition at line 131 of file rs6000-aix-nat.c.

Referenced by aix_remember_child(), and has_my_aix_child_reported().

◆ aix_pending_parent

std::list<pid_t> aix_pending_parent
static

Definition at line 125 of file rs6000-aix-nat.c.

Referenced by aix_remember_parent(), and has_my_aix_parent_reported().

◆ the_rs6000_nat_target

rs6000_nat_target the_rs6000_nat_target
static

Definition at line 120 of file rs6000-aix-nat.c.

Referenced by _initialize_rs6000_nat().