GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/rs6000-nat.c File Reference
#include "defs.h"
#include "inferior.h"
#include "target.h"
#include "gdbcore.h"
#include "symfile.h"
#include "objfiles.h"
#include "libbfd.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-tdep.h"
#include "rs6000-aix-tdep.h"
#include "exec.h"
#include "observer.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>

Go to the source code of this file.

Macros

#define __LDINFO_PTRACE32__   /* for __ld_info32 */
 
#define __LDINFO_PTRACE64__   /* for __ld_info64 */
 
#define ARCH64()   0
 

Functions

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 fetch_register (struct regcache *regcache, int regno)
 
static void store_register (struct regcache *regcache, int regno)
 
static void rs6000_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regno)
 
static void rs6000_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regno)
 
static enum target_xfer_status rs6000_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
 
static ptid_t rs6000_wait (struct target_ops *ops, ptid_t ptid, struct target_waitstatus *ourstatus, int options)
 
static void rs6000_create_inferior (struct target_ops *ops, char *exec_file, char *allargs, char **env, int from_tty)
 
static gdb_byters6000_ptrace_ldinfo (ptid_t ptid)
 
static enum target_xfer_status rs6000_xfer_shared_libraries (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len)
 
void _initialize_rs6000_nat (void)
 

Variables

static target_xfer_partial_ftype rs6000_xfer_shared_libraries
 
static void(* super_create_inferior )(struct target_ops *, char *exec_file, char *allargs, char **env, int from_tty)
 

Macro Definition Documentation

#define __LDINFO_PTRACE32__   /* for __ld_info32 */

Definition at line 54 of file rs6000-nat.c.

#define __LDINFO_PTRACE64__   /* for __ld_info64 */

Definition at line 55 of file rs6000-nat.c.

#define ARCH64 ( )    0

Function Documentation

void _initialize_rs6000_nat ( void  )
static void fetch_register ( struct regcache regcache,
int  regno 
)
static
static int regmap ( struct gdbarch gdbarch,
int  regno,
int isfloat 
)
static
static void rs6000_create_inferior ( struct target_ops ops,
char *  exec_file,
char *  allargs,
char **  env,
int  from_tty 
)
static
static void rs6000_fetch_inferior_registers ( struct target_ops ops,
struct regcache regcache,
int  regno 
)
static
static int rs6000_ptrace32 ( int  req,
int  id,
int addr,
int  data,
int buf 
)
static

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

References ptrace().

Referenced by fetch_register(), rs6000_ptrace_ldinfo(), rs6000_xfer_partial(), and store_register().

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

Definition at line 142 of file rs6000-nat.c.

References hex_string().

Referenced by fetch_register(), rs6000_ptrace_ldinfo(), rs6000_xfer_partial(), and store_register().

static gdb_byte* rs6000_ptrace_ldinfo ( ptid_t  ptid)
static
static void rs6000_store_inferior_registers ( struct target_ops ops,
struct regcache regcache,
int  regno 
)
static
static ptid_t rs6000_wait ( struct target_ops ops,
ptid_t  ptid,
struct target_waitstatus ourstatus,
int  options 
)
static
static enum target_xfer_status rs6000_xfer_partial ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
ULONGEST  len,
ULONGEST xfered_len 
)
static
static enum target_xfer_status rs6000_xfer_shared_libraries ( struct target_ops ops,
enum target_object  object,
const char *  annex,
gdb_byte readbuf,
const gdb_byte writebuf,
ULONGEST  offset,
ULONGEST  len,
ULONGEST xfered_len 
)
static
static void store_register ( struct regcache regcache,
int  regno 
)
static

Variable Documentation

target_xfer_partial_ftype rs6000_xfer_shared_libraries
static

Definition at line 78 of file rs6000-nat.c.

Referenced by rs6000_xfer_partial().

void(* super_create_inferior) (struct target_ops *, char *exec_file, char *allargs, char **env, int from_tty)
static

Definition at line 530 of file rs6000-nat.c.

Referenced by _initialize_rs6000_nat(), and rs6000_create_inferior().