GDB (xrefs)
Functions | Variables
/tmp/gdb-8.1/gdb/ppc-obsd-tdep.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include "frame.h"
#include "frame-unwind.h"
#include "gdbtypes.h"
#include "osabi.h"
#include "regcache.h"
#include "regset.h"
#include "symtab.h"
#include "trad-frame.h"
#include "ppc-tdep.h"
#include "ppc-obsd-tdep.h"
#include "solib-svr4.h"

Go to the source code of this file.

Functions

void ppcobsd_supply_gregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
 
void ppcobsd_collect_gregset (const struct regset *regset, const struct regcache *regcache, int regnum, void *gregs, size_t len)
 
static void ppcobsd_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
 
static int ppcobsd_sigtramp_frame_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
 
static struct trad_frame_cacheppcobsd_sigtramp_frame_cache (struct frame_info *this_frame, void **this_cache)
 
static void ppcobsd_sigtramp_frame_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
 
static struct valueppcobsd_sigtramp_frame_prev_register (struct frame_info *this_frame, void **this_cache, int regnum)
 
static void ppcobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
void _initialize_ppcobsd_tdep (void)
 

Variables

struct ppc_reg_offsets ppcobsd_reg_offsets
 
struct ppc_reg_offsets ppcobsd_fpreg_offsets
 
const struct regset ppcobsd_gregset
 
const struct regset ppcobsd_fpregset
 
static const int ppcobsd_page_size = 4096
 
static const int ppcobsd_sigreturn_offset []
 
static const struct frame_unwind ppcobsd_sigtramp_frame_unwind
 

Function Documentation

◆ _initialize_ppcobsd_tdep()

void _initialize_ppcobsd_tdep ( void  )

◆ ppcobsd_collect_gregset()

void ppcobsd_collect_gregset ( const struct regset regset,
const struct regcache regcache,
int  regnum,
void *  gregs,
size_t  len 
)

Definition at line 61 of file ppc-obsd-tdep.c.

References ppc_collect_fpregset(), ppc_collect_gregset(), and regnum.

◆ ppcobsd_init_abi()

static void ppcobsd_init_abi ( struct gdbarch_info  info,
struct gdbarch gdbarch 
)
static

◆ ppcobsd_iterate_over_regset_sections()

static void ppcobsd_iterate_over_regset_sections ( struct gdbarch gdbarch,
iterate_over_regset_sections_cb cb,
void *  cb_data,
const struct regcache regcache 
)
static

Definition at line 86 of file ppc-obsd-tdep.c.

References ppcobsd_gregset.

Referenced by ppcobsd_init_abi().

◆ ppcobsd_sigtramp_frame_cache()

static struct trad_frame_cache* ppcobsd_sigtramp_frame_cache ( struct frame_info this_frame,
void **  this_cache 
)
static

◆ ppcobsd_sigtramp_frame_prev_register()

static struct value* ppcobsd_sigtramp_frame_prev_register ( struct frame_info this_frame,
void **  this_cache,
int  regnum 
)
static

◆ ppcobsd_sigtramp_frame_sniffer()

static int ppcobsd_sigtramp_frame_sniffer ( const struct frame_unwind self,
struct frame_info this_frame,
void **  this_cache 
)
static

◆ ppcobsd_sigtramp_frame_this_id()

static void ppcobsd_sigtramp_frame_this_id ( struct frame_info this_frame,
void **  this_cache,
struct frame_id this_id 
)
static

◆ ppcobsd_supply_gregset()

void ppcobsd_supply_gregset ( const struct regset regset,
struct regcache regcache,
int  regnum,
const void *  gregs,
size_t  len 
)

Definition at line 47 of file ppc-obsd-tdep.c.

References ppc_supply_fpregset(), ppc_supply_gregset(), and regnum.

Variable Documentation

◆ ppcobsd_fpreg_offsets

struct ppc_reg_offsets ppcobsd_fpreg_offsets

Definition at line 37 of file ppc-obsd-tdep.c.

Referenced by _initialize_ppcobsd_nat(), and _initialize_ppcobsd_tdep().

◆ ppcobsd_fpregset

const struct regset ppcobsd_fpregset
Initial value:
=
{
}
struct ppc_reg_offsets ppcobsd_fpreg_offsets
Definition: ppc-obsd-tdep.c:37
void ppc_supply_fpregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)
Definition: rs6000-tdep.c:561

Definition at line 77 of file ppc-obsd-tdep.c.

Referenced by ppcobsd_fetch_registers(), and ppcobsd_store_registers().

◆ ppcobsd_gregset

const struct regset ppcobsd_gregset
Initial value:
=
{
}
void ppcobsd_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
Definition: ppc-obsd-tdep.c:47
struct ppc_reg_offsets ppcobsd_reg_offsets
Definition: ppc-obsd-tdep.c:36

Definition at line 71 of file ppc-obsd-tdep.c.

Referenced by ppcobsd_fetch_registers(), ppcobsd_iterate_over_regset_sections(), and ppcobsd_store_registers().

◆ ppcobsd_page_size

const int ppcobsd_page_size = 4096
static

◆ ppcobsd_reg_offsets

struct ppc_reg_offsets ppcobsd_reg_offsets

Definition at line 36 of file ppc-obsd-tdep.c.

Referenced by _initialize_ppcobsd_nat(), and _initialize_ppcobsd_tdep().

◆ ppcobsd_sigreturn_offset

const int ppcobsd_sigreturn_offset[]
static
Initial value:
= {
0x98,
0x0c,
-1
}

Definition at line 112 of file ppc-obsd-tdep.c.

Referenced by ppcobsd_sigtramp_frame_sniffer().

◆ ppcobsd_sigtramp_frame_unwind

const struct frame_unwind ppcobsd_sigtramp_frame_unwind
static
Initial value:
= {
NULL,
}
static struct value * ppcobsd_sigtramp_frame_prev_register(struct frame_info *this_frame, void **this_cache, int regnum)
static void ppcobsd_sigtramp_frame_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
static int ppcobsd_sigtramp_frame_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
enum unwind_stop_reason default_frame_unwind_stop_reason(struct frame_info *this_frame, void **this_cache)
Definition: frame-unwind.c:184

Definition at line 234 of file ppc-obsd-tdep.c.

Referenced by ppcobsd_init_abi().