GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/ppcobsd-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 "ppcobsd-tdep.h"
#include "solib-svr4.h"

Go to the source code of this file.

Macros

#define GDB_OSABI_NETBSD_CORE   GDB_OSABI_OPENBSD_ELF
 

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)
 
static enum gdb_osabi ppcobsd_core_osabi_sniffer (bfd *abfd)
 
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
 

Macro Definition Documentation

#define GDB_OSABI_NETBSD_CORE   GDB_OSABI_OPENBSD_ELF

Definition at line 267 of file ppcobsd-tdep.c.

Referenced by ppcobsd_core_osabi_sniffer().

Function Documentation

void _initialize_ppcobsd_tdep ( void  )
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 ppcobsd-tdep.c.

References ppc_collect_fpregset(), and ppc_collect_gregset().

static enum gdb_osabi ppcobsd_core_osabi_sniffer ( bfd *  abfd)
static

Definition at line 270 of file ppcobsd-tdep.c.

References GDB_OSABI_NETBSD_CORE, and GDB_OSABI_UNKNOWN.

Referenced by _initialize_ppcobsd_tdep().

static void ppcobsd_init_abi ( struct gdbarch_info  info,
struct gdbarch gdbarch 
)
static
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 ppcobsd-tdep.c.

Referenced by ppcobsd_init_abi().

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

Definition at line 225 of file ppcobsd-tdep.c.

References ppcobsd_sigtramp_frame_cache(), and trad_frame_get_register().

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

Definition at line 215 of file ppcobsd-tdep.c.

References ppcobsd_sigtramp_frame_cache(), and trad_frame_get_id().

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 ppcobsd-tdep.c.

References ppc_supply_fpregset(), and ppc_supply_gregset().

Variable Documentation

struct ppc_reg_offsets ppcobsd_fpreg_offsets

Definition at line 37 of file ppcobsd-tdep.c.

Referenced by _initialize_ppcobsd_nat(), and _initialize_ppcobsd_tdep().

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

Definition at line 77 of file ppcobsd-tdep.c.

Referenced by ppcobsd_fetch_registers(), and ppcobsd_store_registers().

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

Definition at line 71 of file ppcobsd-tdep.c.

Referenced by ppcobsd_fetch_registers(), and ppcobsd_store_registers().

const int ppcobsd_page_size = 4096
static

Definition at line 109 of file ppcobsd-tdep.c.

Referenced by ppcobsd_sigtramp_frame_cache(), and ppcobsd_sigtramp_frame_sniffer().

struct ppc_reg_offsets ppcobsd_reg_offsets

Definition at line 36 of file ppcobsd-tdep.c.

Referenced by _initialize_ppcobsd_nat(), and _initialize_ppcobsd_tdep().

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

Definition at line 112 of file ppcobsd-tdep.c.

Referenced by ppcobsd_sigtramp_frame_sniffer().

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)
Definition: ppcobsd-tdep.c:225
static void ppcobsd_sigtramp_frame_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
Definition: ppcobsd-tdep.c:215
static int ppcobsd_sigtramp_frame_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
Definition: ppcobsd-tdep.c:119
enum unwind_stop_reason default_frame_unwind_stop_reason(struct frame_info *this_frame, void **this_cache)
Definition: frame-unwind.c:180

Definition at line 234 of file ppcobsd-tdep.c.