GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
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, frame_info_ptr this_frame, void **this_cache)
 
static struct trad_frame_cacheppcobsd_sigtramp_frame_cache (frame_info_ptr this_frame, void **this_cache)
 
static void ppcobsd_sigtramp_frame_this_id (frame_info_ptr this_frame, void **this_cache, struct frame_id *this_id)
 
static struct valueppcobsd_sigtramp_frame_prev_register (frame_info_ptr this_frame, void **this_cache, int regnum)
 
static void ppcobsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
void _initialize_ppcobsd_tdep ()
 

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 ( )

◆ 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 ( frame_info_ptr this_frame,
void ** this_cache )
static

◆ ppcobsd_sigtramp_frame_prev_register()

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

◆ ppcobsd_sigtramp_frame_sniffer()

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

◆ ppcobsd_sigtramp_frame_this_id()

static void ppcobsd_sigtramp_frame_this_id ( frame_info_ptr 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
void ppc_supply_fpregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)

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

Referenced by ppc_obsd_nat_target::fetch_registers(), and ppc_obsd_nat_target::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)
struct ppc_reg_offsets ppcobsd_reg_offsets

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

Referenced by ppc_obsd_nat_target::fetch_registers(), ppcobsd_iterate_over_regset_sections(), and ppc_obsd_nat_target::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:
= {
"ppc openbsd sigtramp",
NULL,
}
enum unwind_stop_reason default_frame_unwind_stop_reason(frame_info_ptr this_frame, void **this_cache)
@ SIGTRAMP_FRAME
Definition frame.h:198
static void ppcobsd_sigtramp_frame_this_id(frame_info_ptr this_frame, void **this_cache, struct frame_id *this_id)
static int ppcobsd_sigtramp_frame_sniffer(const struct frame_unwind *self, frame_info_ptr this_frame, void **this_cache)
static struct value * ppcobsd_sigtramp_frame_prev_register(frame_info_ptr this_frame, void **this_cache, int regnum)

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

Referenced by ppcobsd_init_abi().