GDB (xrefs)
Loading...
Searching...
No Matches
Functions | Variables
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"
#include "inferior.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, frame_info_ptr this_frame, void **this_cache)
 
static struct trad_frame_cacheppcfbsd_sigtramp_frame_cache (frame_info_ptr this_frame, void **this_cache)
 
static void ppcfbsd_sigtramp_frame_this_id (frame_info_ptr this_frame, void **this_cache, struct frame_id *this_id)
 
static struct valueppcfbsd_sigtramp_frame_prev_register (frame_info_ptr 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 CORE_ADDR ppcfbsd_get_thread_local_address (struct gdbarch *gdbarch, ptid_t ptid, CORE_ADDR lm_addr, CORE_ADDR offset)
 
static void ppcfbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
void _initialize_ppcfbsd_tdep ()
 

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

Definition at line 367 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 110 of file ppc-fbsd-tdep.c.

References ppc32_fbsd_gregset, and ppc64_fbsd_gregset.

Referenced by fill_gregset(), and supply_gregset().

◆ ppcfbsd_get_thread_local_address()

static CORE_ADDR ppcfbsd_get_thread_local_address ( struct gdbarch * gdbarch,
ptid_t ptid,
CORE_ADDR lm_addr,
CORE_ADDR offset )
static

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

◆ ppcfbsd_sigtramp_frame_prev_register()

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

◆ ppcfbsd_sigtramp_frame_sniffer()

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

◆ ppcfbsd_sigtramp_frame_this_id()

static void ppcfbsd_sigtramp_frame_this_id ( frame_info_ptr 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:
= {
}
static const struct ppc_reg_offsets ppc32_fbsd_reg_offsets
void ppc_supply_fpregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *fpregs, size_t len)
void ppc_collect_fpregset(const struct regset *regset, const struct regcache *regcache, int regnum, void *fpregs, size_t len)

Definition at line 103 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)
void ppc_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)

Definition at line 87 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 43 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 at line 95 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 65 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 144 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:
= {
"ppc freebsd 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 struct value * ppcfbsd_sigtramp_frame_prev_register(frame_info_ptr this_frame, void **this_cache, int regnum)
static int ppcfbsd_sigtramp_frame_sniffer(const struct frame_unwind *self, frame_info_ptr this_frame, void **this_cache)
static void ppcfbsd_sigtramp_frame_this_id(frame_info_ptr this_frame, void **this_cache, struct frame_id *this_id)

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

Referenced by ppcfbsd_init_abi().