GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-8.1/gdb/arm-fbsd-tdep.c File Reference
#include "defs.h"
#include "elf/common.h"
#include "arm-tdep.h"
#include "arm-fbsd-tdep.h"
#include "auxv.h"
#include "fbsd-tdep.h"
#include "gdbcore.h"
#include "osabi.h"
#include "solib-svr4.h"
#include "trad-frame.h"
#include "tramp-frame.h"

Go to the source code of this file.

Macros

#define ARM_MCONTEXT_REG_SIZE   4
 
#define ARM_MCONTEXT_VFP_REG_SIZE   8
 
#define ARM_SIGFRAME_UCONTEXT_OFFSET   64
 
#define ARM_UCONTEXT_MCONTEXT_OFFSET   16
 
#define ARM_MCONTEXT_VFP_PTR_OFFSET   72
 

Functions

static void arm_fbsd_sigframe_init (const struct tramp_frame *self, struct frame_info *this_frame, struct trad_frame_cache *this_cache, CORE_ADDR func)
 
static void arm_fbsd_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
 
const struct target_descarm_fbsd_read_description_auxv (struct target_ops *target)
 
static const struct target_descarm_fbsd_core_read_description (struct gdbarch *gdbarch, struct target_ops *target, bfd *abfd)
 
static void arm_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 
void _initialize_arm_fbsd_tdep (void)
 

Variables

static const struct tramp_frame arm_fbsd_sigframe
 
static const struct regcache_map_entry arm_fbsd_gregmap []
 
static const struct regcache_map_entry arm_fbsd_vfpregmap []
 
const struct regset arm_fbsd_gregset
 
const struct regset arm_fbsd_vfpregset
 

Macro Definition Documentation

◆ ARM_MCONTEXT_REG_SIZE

#define ARM_MCONTEXT_REG_SIZE   4

Definition at line 70 of file arm-fbsd-tdep.c.

Referenced by arm_fbsd_sigframe_init().

◆ ARM_MCONTEXT_VFP_PTR_OFFSET

#define ARM_MCONTEXT_VFP_PTR_OFFSET   72

Definition at line 74 of file arm-fbsd-tdep.c.

Referenced by arm_fbsd_sigframe_init().

◆ ARM_MCONTEXT_VFP_REG_SIZE

#define ARM_MCONTEXT_VFP_REG_SIZE   8

Definition at line 71 of file arm-fbsd-tdep.c.

Referenced by arm_fbsd_sigframe_init().

◆ ARM_SIGFRAME_UCONTEXT_OFFSET

#define ARM_SIGFRAME_UCONTEXT_OFFSET   64

Definition at line 72 of file arm-fbsd-tdep.c.

Referenced by arm_fbsd_sigframe_init().

◆ ARM_UCONTEXT_MCONTEXT_OFFSET

#define ARM_UCONTEXT_MCONTEXT_OFFSET   16

Definition at line 73 of file arm-fbsd-tdep.c.

Referenced by arm_fbsd_sigframe_init().

Function Documentation

◆ _initialize_arm_fbsd_tdep()

void _initialize_arm_fbsd_tdep ( void  )

Definition at line 253 of file arm-fbsd-tdep.c.

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

◆ arm_fbsd_core_read_description()

static const struct target_desc* arm_fbsd_core_read_description ( struct gdbarch gdbarch,
struct target_ops target,
bfd *  abfd 
)
static

Definition at line 216 of file arm-fbsd-tdep.c.

References arm_fbsd_read_description_auxv().

Referenced by arm_fbsd_init_abi().

◆ arm_fbsd_init_abi()

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

◆ arm_fbsd_iterate_over_regset_sections()

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

◆ arm_fbsd_read_description_auxv()

const struct target_desc* arm_fbsd_read_description_auxv ( struct target_ops target)

◆ arm_fbsd_sigframe_init()

static void arm_fbsd_sigframe_init ( const struct tramp_frame self,
struct frame_info this_frame,
struct trad_frame_cache this_cache,
CORE_ADDR  func 
)
static

Variable Documentation

◆ arm_fbsd_gregmap

const struct regcache_map_entry arm_fbsd_gregmap[]
static
Initial value:
=
{
{ 13, ARM_A1_REGNUM, 4 },
{ 1, ARM_SP_REGNUM, 4 },
{ 1, ARM_LR_REGNUM, 4 },
{ 1, ARM_PC_REGNUM, 4 },
{ 1, ARM_PS_REGNUM, 4 },
{ 0 }
}

Definition at line 137 of file arm-fbsd-tdep.c.

◆ arm_fbsd_gregset

const struct regset arm_fbsd_gregset
Initial value:
=
{
}
static const struct regcache_map_entry arm_fbsd_gregmap[]
void regcache_supply_regset(const struct regset *regset, struct regcache *regcache, int regnum, const void *buf, size_t size)
Definition: regcache.c:1192
void regcache_collect_regset(const struct regset *regset, const struct regcache *regcache, int regnum, void *buf, size_t size)
Definition: regcache.c:1211

Definition at line 156 of file arm-fbsd-tdep.c.

Referenced by arm_fbsd_fetch_inferior_registers(), arm_fbsd_iterate_over_regset_sections(), and arm_fbsd_store_inferior_registers().

◆ arm_fbsd_sigframe

const struct tramp_frame arm_fbsd_sigframe
static
Initial value:
=
{
4,
{
{0xe1a0000d, -1},
{0xe2800040, -1},
{0xe59f700c, -1},
{0xef0001a1, -1},
},
}
#define TRAMP_SENTINEL_INSN
Definition: tramp-frame.h:44
static void arm_fbsd_sigframe_init(const struct tramp_frame *self, struct frame_info *this_frame, struct trad_frame_cache *this_cache, CORE_ADDR func)
Definition: arm-fbsd-tdep.c:79

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

Referenced by arm_fbsd_init_abi().

◆ arm_fbsd_vfpregmap

const struct regcache_map_entry arm_fbsd_vfpregmap[]
static
Initial value:
=
{
{ 32, ARM_D0_REGNUM, 8 },
{ 1, ARM_FPSCR_REGNUM, 4 },
{ 0 }
}

Definition at line 147 of file arm-fbsd-tdep.c.

◆ arm_fbsd_vfpregset

const struct regset arm_fbsd_vfpregset
Initial value:
=
{
}
static const struct regcache_map_entry arm_fbsd_vfpregmap[]
void regcache_supply_regset(const struct regset *regset, struct regcache *regcache, int regnum, const void *buf, size_t size)
Definition: regcache.c:1192
void regcache_collect_regset(const struct regset *regset, const struct regcache *regcache, int regnum, void *buf, size_t size)
Definition: regcache.c:1211

Definition at line 162 of file arm-fbsd-tdep.c.

Referenced by arm_fbsd_fetch_inferior_registers(), arm_fbsd_iterate_over_regset_sections(), and arm_fbsd_store_inferior_registers().