GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-8.1/gdb/sparc-nat.c File Reference
#include "defs.h"
#include "inferior.h"
#include "regcache.h"
#include "target.h"
#include <signal.h>
#include <sys/ptrace.h>
#include "gdb_wait.h"
#include "sparc-tdep.h"
#include "sparc-nat.h"
#include "inf-ptrace.h"

Go to the source code of this file.

Macros

#define PTRACE_GETREGS   PT_GETREGS
 
#define PTRACE_SETREGS   PT_SETREGS
 
#define PTRACE_GETFPREGS   PT_GETFPREGS
 
#define PTRACE_SETFPREGS   PT_SETFPREGS
 

Functions

int sparc32_gregset_supplies_p (struct gdbarch *gdbarch, int regnum)
 
int sparc32_fpregset_supplies_p (struct gdbarch *gdbarch, int regnum)
 
void sparc_fetch_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
 
void sparc_store_inferior_registers (struct target_ops *ops, struct regcache *regcache, int regnum)
 
static enum target_xfer_status sparc_xfer_wcookie (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 enum target_xfer_status sparc_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)
 
struct target_opssparc_target (void)
 
void _initialize_sparc_nat (void)
 

Variables

const struct sparc_gregmapsparc_gregmap
 
const struct sparc_fpregmapsparc_fpregmap
 
void(* sparc_supply_gregset )(const struct sparc_gregmap *, struct regcache *, int, const void *)
 
void(* sparc_collect_gregset )(const struct sparc_gregmap *, const struct regcache *, int, void *)
 
void(* sparc_supply_fpregset )(const struct sparc_fpregmap *, struct regcache *, int, const void *)
 
void(* sparc_collect_fpregset )(const struct sparc_fpregmap *, const struct regcache *, int, void *)
 
int(* sparc_gregset_supplies_p )(struct gdbarch *, int)
 
int(* sparc_fpregset_supplies_p )(struct gdbarch *, int)
 
target_xfer_partial_ftypeinf_ptrace_xfer_partial
 

Macro Definition Documentation

◆ PTRACE_GETFPREGS

#define PTRACE_GETFPREGS   PT_GETFPREGS

Definition at line 74 of file sparc-nat.c.

Referenced by sparc_fetch_inferior_registers(), and sparc_store_inferior_registers().

◆ PTRACE_GETREGS

#define PTRACE_GETREGS   PT_GETREGS

Definition at line 66 of file sparc-nat.c.

Referenced by sparc_fetch_inferior_registers(), and sparc_store_inferior_registers().

◆ PTRACE_SETFPREGS

#define PTRACE_SETFPREGS   PT_SETFPREGS

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

Referenced by sparc_store_inferior_registers().

◆ PTRACE_SETREGS

#define PTRACE_SETREGS   PT_SETREGS

Definition at line 70 of file sparc-nat.c.

Referenced by sparc_store_inferior_registers().

Function Documentation

◆ _initialize_sparc_nat()

void _initialize_sparc_nat ( void  )

◆ sparc32_fpregset_supplies_p()

int sparc32_fpregset_supplies_p ( struct gdbarch gdbarch,
int  regnum 
)

◆ sparc32_gregset_supplies_p()

int sparc32_gregset_supplies_p ( struct gdbarch gdbarch,
int  regnum 
)

◆ sparc_fetch_inferior_registers()

void sparc_fetch_inferior_registers ( struct target_ops ops,
struct regcache regcache,
int  regnum 
)

◆ sparc_store_inferior_registers()

void sparc_store_inferior_registers ( struct target_ops ops,
struct regcache regcache,
int  regnum 
)

◆ sparc_target()

struct target_ops* sparc_target ( void  )

◆ sparc_xfer_partial()

static enum target_xfer_status sparc_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

Definition at line 312 of file sparc-nat.c.

References inf_ptrace_xfer_partial, offset, sparc_xfer_wcookie(), and TARGET_OBJECT_WCOOKIE.

Referenced by sparc_target().

◆ sparc_xfer_wcookie()

static enum target_xfer_status sparc_xfer_wcookie ( 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

Variable Documentation

◆ inf_ptrace_xfer_partial

target_xfer_partial_ftype* inf_ptrace_xfer_partial

Definition at line 309 of file sparc-nat.c.

Referenced by sparc_target(), and sparc_xfer_partial().

◆ sparc_collect_fpregset

void(* sparc_collect_fpregset) (const struct sparc_fpregmap *, const struct regcache *, int, void *)

Definition at line 90 of file sparc-nat.c.

Referenced by _initialize_sparc_nat(), and sparc_store_inferior_registers().

◆ sparc_collect_gregset

void(* sparc_collect_gregset) (const struct sparc_gregmap *, const struct regcache *, int, void *)

Definition at line 86 of file sparc-nat.c.

Referenced by _initialize_sparc_nat(), and sparc_store_inferior_registers().

◆ sparc_fpregmap

Definition at line 83 of file sparc-nat.c.

◆ sparc_fpregset_supplies_p

int(* sparc_fpregset_supplies_p) (struct gdbarch *, int)

◆ sparc_gregmap

Definition at line 82 of file sparc-nat.c.

◆ sparc_gregset_supplies_p

int(* sparc_gregset_supplies_p) (struct gdbarch *, int)

◆ sparc_supply_fpregset

void(* sparc_supply_fpregset) (const struct sparc_fpregmap *, struct regcache *, int, const void *)

Definition at line 88 of file sparc-nat.c.

Referenced by _initialize_sparc_nat(), and sparc_fetch_inferior_registers().

◆ sparc_supply_gregset

void(* sparc_supply_gregset) (const struct sparc_gregmap *, struct regcache *, int, const void *)

Definition at line 84 of file sparc-nat.c.

Referenced by _initialize_sparc_nat(), and sparc_fetch_inferior_registers().