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

Go to the source code of this file.

Functions

const struct regsetppc_fbsd_gregset (int wordsize)
 
const struct regsetppc_fbsd_fpregset (void)
 
static void ppcfbsd_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
 
static int ppcfbsd_sigtramp_frame_sniffer (const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
 
static struct trad_frame_cacheppcfbsd_sigtramp_frame_cache (struct frame_info *this_frame, void **this_cache)
 
static void ppcfbsd_sigtramp_frame_this_id (struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
 
static struct valueppcfbsd_sigtramp_frame_prev_register (struct frame_info *this_frame, void **this_cache, int regnum)
 
static enum return_value_convention ppcfbsd_return_value (struct gdbarch *gdbarch, struct value *function, struct type *valtype, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf)
 
static void ppcfbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
void _initialize_ppcfbsd_tdep (void)
 

Variables

static const struct ppc_reg_offsets ppc32_fbsd_reg_offsets
 
static const struct ppc_reg_offsets ppc64_fbsd_reg_offsets
 
static const struct regset ppc32_fbsd_gregset
 
static const struct regset ppc64_fbsd_gregset
 
static const struct regset ppc32_fbsd_fpregset
 
static const int ppcfbsd_page_size = 4096
 
static const int ppcfbsd_sigreturn_offset []
 
static const struct frame_unwind ppcfbsd_sigtramp_frame_unwind
 

Function Documentation

void _initialize_ppcfbsd_tdep ( void  )
const struct regset* ppc_fbsd_fpregset ( void  )

Definition at line 127 of file ppcfbsd-tdep.c.

References ppc32_fbsd_fpregset.

Referenced by fill_fpregset(), ppcfbsd_fetch_inferior_registers(), and supply_fpregset().

const struct regset* ppc_fbsd_gregset ( int  wordsize)

Definition at line 121 of file ppcfbsd-tdep.c.

References ppc32_fbsd_gregset.

Referenced by fill_gregset(), and supply_gregset().

static void ppcfbsd_init_abi ( struct gdbarch_info  info,
struct gdbarch gdbarch 
)
static
static void ppcfbsd_iterate_over_regset_sections ( struct gdbarch gdbarch,
iterate_over_regset_sections_cb cb,
void *  cb_data,
const struct regcache regcache 
)
static

Definition at line 135 of file ppcfbsd-tdep.c.

References gdbarch_tdep(), and gdbarch_tdep::wordsize.

Referenced by ppcfbsd_init_abi().

static enum return_value_convention ppcfbsd_return_value ( struct gdbarch gdbarch,
struct value function,
struct type valtype,
struct regcache regcache,
gdb_byte readbuf,
const gdb_byte writebuf 
)
static

Definition at line 287 of file ppcfbsd-tdep.c.

References ppc_sysv_abi_broken_return_value().

Referenced by ppcfbsd_init_abi().

static struct trad_frame_cache* ppcfbsd_sigtramp_frame_cache ( struct frame_info this_frame,
void **  this_cache 
)
static
static struct value* ppcfbsd_sigtramp_frame_prev_register ( struct frame_info this_frame,
void **  this_cache,
int  regnum 
)
static

Definition at line 268 of file ppcfbsd-tdep.c.

References ppcfbsd_sigtramp_frame_cache(), and trad_frame_get_register().

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

Definition at line 258 of file ppcfbsd-tdep.c.

References ppcfbsd_sigtramp_frame_cache(), and trad_frame_get_id().

Variable Documentation

const struct regset ppc32_fbsd_fpregset
static
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
void ppc_collect_fpregset(const struct regset *regset, const struct regcache *regcache, int regnum, void *fpregs, size_t len)
Definition: rs6000-tdep.c:710
static const struct ppc_reg_offsets ppc32_fbsd_reg_offsets
Definition: ppcfbsd-tdep.c:42

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

Referenced by ppc_fbsd_fpregset().

const struct regset ppc32_fbsd_gregset
static
Initial value:
= {
}
void ppc_collect_gregset(const struct regset *regset, const struct regcache *regcache, int regnum, void *gregs, size_t len)
Definition: rs6000-tdep.c:663
static const struct ppc_reg_offsets ppc32_fbsd_reg_offsets
Definition: ppcfbsd-tdep.c:42
void ppc_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
Definition: rs6000-tdep.c:505

Definition at line 98 of file ppcfbsd-tdep.c.

Referenced by ppc_fbsd_gregset().

const struct ppc_reg_offsets ppc32_fbsd_reg_offsets
static
Initial value:
=
{
0,
4,
4,
144,
-1,
132,
128,
140,
136,
-1,
0,
256,
8,
}

Definition at line 42 of file ppcfbsd-tdep.c.

const struct regset ppc64_fbsd_gregset
static
Initial value:
= {
}
void ppc_collect_gregset(const struct regset *regset, const struct regcache *regcache, int regnum, void *gregs, size_t len)
Definition: rs6000-tdep.c:663
static const struct ppc_reg_offsets ppc64_fbsd_reg_offsets
Definition: ppcfbsd-tdep.c:70
void ppc_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
Definition: rs6000-tdep.c:505

Definition at line 106 of file ppcfbsd-tdep.c.

const struct ppc_reg_offsets ppc64_fbsd_reg_offsets
static
Initial value:
=
{
0,
8,
8,
288,
-1,
264,
256,
280,
272,
-1,
0,
256,
8,
}

Definition at line 70 of file ppcfbsd-tdep.c.

const int ppcfbsd_page_size = 4096
static

Definition at line 151 of file ppcfbsd-tdep.c.

Referenced by ppcfbsd_sigtramp_frame_cache(), and ppcfbsd_sigtramp_frame_sniffer().

const int ppcfbsd_sigreturn_offset[]
static
Initial value:
= {
0xc,
-1
}

Definition at line 155 of file ppcfbsd-tdep.c.

Referenced by ppcfbsd_sigtramp_frame_sniffer().

const struct frame_unwind ppcfbsd_sigtramp_frame_unwind
static
Initial value:
= {
NULL,
}
static int ppcfbsd_sigtramp_frame_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_cache)
Definition: ppcfbsd-tdep.c:163
static void ppcfbsd_sigtramp_frame_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
Definition: ppcfbsd-tdep.c:258
enum unwind_stop_reason default_frame_unwind_stop_reason(struct frame_info *this_frame, void **this_cache)
Definition: frame-unwind.c:180
static struct value * ppcfbsd_sigtramp_frame_prev_register(struct frame_info *this_frame, void **this_cache, int regnum)
Definition: ppcfbsd-tdep.c:268

Definition at line 277 of file ppcfbsd-tdep.c.