GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/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 "gdb_assert.h"
#include "gdb_string.h"
#include "ppc-tdep.h"
#include "ppcobsd-tdep.h"
#include "solib-svr4.h"

Go to the source code of this file.

Defines

#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 struct regsetppcobsd_regset_from_core_section (struct gdbarch *gdbarch, const char *sect_name, size_t sect_size)
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
struct regset ppcobsd_gregset
struct regset ppcobsd_fpregset
static const int ppcobsd_page_size = 4096
static const int ppcobsd_sigreturn_offset []
static struct frame_unwind ppcobsd_sigtramp_frame_unwind

Define Documentation

Definition at line 272 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 64 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 275 of file ppcobsd-tdep.c.

References GDB_OSABI_NETBSD_CORE, and GDB_OSABI_UNKNOWN.

static void ppcobsd_init_abi ( struct gdbarch_info  info,
struct gdbarch gdbarch 
) [static]
static struct regset* ppcobsd_regset_from_core_section ( struct gdbarch gdbarch,
const char *  sect_name,
size_t  sect_size 
) [static, read]

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

References ppcobsd_gregset.

Referenced by ppcobsd_init_abi().

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

Definition at line 230 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 220 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 50 of file ppcobsd-tdep.c.

References ppc_supply_fpregset(), and ppc_supply_gregset().


Variable Documentation

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

Referenced by _initialize_ppcobsd_nat().

Initial value:

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

Referenced by ppcobsd_fetch_registers(), and ppcobsd_store_registers().

const int ppcobsd_page_size = 4096 [static]

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

Referenced by ppcobsd_sigtramp_frame_cache(), and ppcobsd_sigtramp_frame_sniffer().

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

Referenced by _initialize_ppcobsd_nat().

Initial value:
 {
  0x98,                         
  0x0c,                         
  -1
}

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

Referenced by ppcobsd_sigtramp_frame_sniffer().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines