GDB (xrefs)
Functions | Variables
/tmp/gdb-8.1/gdb/ppc-fbsd-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 "ppc-fbsd-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

◆ _initialize_ppcfbsd_tdep()

void _initialize_ppcfbsd_tdep ( void  )

Definition at line 340 of file ppc-fbsd-tdep.c.

References GDB_OSABI_FREEBSD, gdbarch_register_osabi(), and ppcfbsd_init_abi().

◆ ppc_fbsd_fpregset()

const struct regset* ppc_fbsd_fpregset ( void  )

◆ ppc_fbsd_gregset()

const struct regset* ppc_fbsd_gregset ( int  wordsize)

Definition at line 121 of file ppc-fbsd-tdep.c.

References ppc32_fbsd_gregset, ppc64_fbsd_gregset, and wordsize.

Referenced by fill_gregset(), and supply_gregset().

◆ ppcfbsd_init_abi()

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

◆ ppcfbsd_iterate_over_regset_sections()

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

◆ ppcfbsd_return_value()

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 286 of file ppc-fbsd-tdep.c.

References ppc_sysv_abi_broken_return_value().

Referenced by ppcfbsd_init_abi().

◆ ppcfbsd_sigtramp_frame_cache()

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

◆ ppcfbsd_sigtramp_frame_prev_register()

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

◆ ppcfbsd_sigtramp_frame_sniffer()

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

◆ ppcfbsd_sigtramp_frame_this_id()

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

Variable Documentation

◆ ppc32_fbsd_fpregset

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

Definition at line 114 of file ppc-fbsd-tdep.c.

Referenced by ppc_fbsd_fpregset(), and ppcfbsd_iterate_over_regset_sections().

◆ ppc32_fbsd_gregset

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:675
static const struct ppc_reg_offsets ppc32_fbsd_reg_offsets
Definition: ppc-fbsd-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:511

Definition at line 98 of file ppc-fbsd-tdep.c.

Referenced by ppc_fbsd_gregset(), and ppcfbsd_iterate_over_regset_sections().

◆ ppc32_fbsd_reg_offsets

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 ppc-fbsd-tdep.c.

◆ ppc64_fbsd_gregset

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

Definition at line 106 of file ppc-fbsd-tdep.c.

Referenced by ppc_fbsd_gregset(), and ppcfbsd_iterate_over_regset_sections().

◆ ppc64_fbsd_reg_offsets

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 ppc-fbsd-tdep.c.

◆ ppcfbsd_page_size

const int ppcfbsd_page_size = 4096
static

◆ ppcfbsd_sigreturn_offset

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

Definition at line 155 of file ppc-fbsd-tdep.c.

Referenced by ppcfbsd_sigtramp_frame_sniffer().

◆ ppcfbsd_sigtramp_frame_unwind

const struct frame_unwind ppcfbsd_sigtramp_frame_unwind
static
Initial value:
= {
NULL,
}
static void ppcfbsd_sigtramp_frame_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
static int ppcfbsd_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
static struct value * ppcfbsd_sigtramp_frame_prev_register(struct frame_info *this_frame, void **this_cache, int regnum)

Definition at line 276 of file ppc-fbsd-tdep.c.

Referenced by ppcfbsd_init_abi().