GDB (xrefs)
|
#include "defs.h"
#include "elf/common.h"
#include "target-descriptions.h"
#include "aarch32-tdep.h"
#include "arm-tdep.h"
#include "arm-fbsd-tdep.h"
#include "auxv.h"
#include "fbsd-tdep.h"
#include "gdbcore.h"
#include "inferior.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_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, frame_info_ptr this_frame, struct trad_frame_cache *this_cache, CORE_ADDR func) |
static void | arm_fbsd_supply_tls_regset (const struct regset *regset, struct regcache *regcache, int regnum, const void *buf, size_t size) |
static void | arm_fbsd_collect_tls_regset (const struct regset *regset, const struct regcache *regcache, int regnum, void *buf, size_t size) |
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_desc * | arm_fbsd_read_description_auxv (const gdb::optional< gdb::byte_vector > &auxv, target_ops *target, gdbarch *gdbarch, bool tls) |
const struct target_desc * | arm_fbsd_read_description_auxv (bool tls) |
static const struct target_desc * | arm_fbsd_core_read_description (struct gdbarch *gdbarch, struct target_ops *target, bfd *abfd) |
static CORE_ADDR | arm_fbsd_get_thread_local_address (struct gdbarch *gdbarch, ptid_t ptid, CORE_ADDR lm_addr, CORE_ADDR offset) |
static void | arm_fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) |
void | _initialize_arm_fbsd_tdep () |
Variables | |
static const struct regcache_map_entry | arm_fbsd_gregmap [] |
static const struct regcache_map_entry | arm_fbsd_vfpregmap [] |
static const struct regcache_map_entry | arm_fbsd_tls_regmap [] |
static const struct tramp_frame | arm_fbsd_sigframe |
const struct regset | arm_fbsd_gregset |
const struct regset | arm_fbsd_vfpregset |
const struct regset | arm_fbsd_tls_regset |
#define ARM_MCONTEXT_VFP_PTR_OFFSET 72 |
Definition at line 102 of file arm-fbsd-tdep.c.
Referenced by arm_fbsd_sigframe_init().
#define ARM_SIGFRAME_UCONTEXT_OFFSET 64 |
Definition at line 100 of file arm-fbsd-tdep.c.
Referenced by arm_fbsd_sigframe_init().
#define ARM_UCONTEXT_MCONTEXT_OFFSET 16 |
Definition at line 101 of file arm-fbsd-tdep.c.
Referenced by arm_fbsd_sigframe_init().
void _initialize_arm_fbsd_tdep | ( | ) |
Definition at line 330 of file arm-fbsd-tdep.c.
References arm_fbsd_init_abi(), GDB_OSABI_FREEBSD, and gdbarch_register_osabi().
|
static |
Definition at line 174 of file arm-fbsd-tdep.c.
References reg_buffer::arch(), regcache::collect_regset(), regnum, size, and arm_gdbarch_tdep::tls_regnum.
|
static |
Definition at line 257 of file arm-fbsd-tdep.c.
References arm_fbsd_read_description_auxv(), and target_read_auxv_raw().
Referenced by arm_fbsd_init_abi().
|
static |
Definition at line 270 of file arm-fbsd-tdep.c.
References readable_regcache::cooked_read(), current_inferior(), fbsd_get_thread_local_address(), get_thread_arch_regcache(), lm_addr(), regcache::ptid(), reg_buffer::regcache, target_fetch_registers(), and arm_gdbarch_tdep::tls_regnum.
Referenced by arm_fbsd_init_abi().
|
static |
Definition at line 294 of file arm-fbsd-tdep.c.
References arm_fbsd_core_read_description(), arm_fbsd_get_thread_local_address(), arm_fbsd_iterate_over_regset_sections(), arm_fbsd_sigframe, ARM_FLOAT_AUTO, ARM_FLOAT_SOFT_VFP, arm_software_single_step(), fbsd_init_abi(), arm_gdbarch_tdep::jb_elt_size, arm_gdbarch_tdep::jb_pc, set_gdbarch_core_read_description(), set_gdbarch_fetch_tls_load_module_address(), set_gdbarch_get_thread_local_address(), set_gdbarch_iterate_over_regset_sections(), set_gdbarch_software_single_step(), set_solib_svr4_fetch_link_map_offsets(), svr4_fetch_objfile_link_map(), svr4_ilp32_fetch_link_map_offsets(), arm_gdbarch_tdep::tls_regnum, and tramp_frame_prepend_unwinder().
Referenced by _initialize_arm_fbsd_tdep().
|
static |
Definition at line 193 of file arm-fbsd-tdep.c.
References arm_fbsd_gregset, ARM_FBSD_SIZEOF_GREGSET, ARM_FBSD_SIZEOF_TLSREGSET, ARM_FBSD_SIZEOF_VFPREGSET, arm_fbsd_tls_regset, arm_fbsd_vfpregset, arm_gdbarch_tdep::tls_regnum, and arm_gdbarch_tdep::vfp_register_count.
Referenced by arm_fbsd_init_abi().
const struct target_desc * arm_fbsd_read_description_auxv | ( | bool | tls | ) |
Definition at line 245 of file arm-fbsd-tdep.c.
References arm_fbsd_read_description_auxv(), current_inferior(), and target_read_auxv().
const struct target_desc * arm_fbsd_read_description_auxv | ( | const gdb::optional< gdb::byte_vector > & | auxv, |
target_ops * | target, | ||
gdbarch * | gdbarch, | ||
bool | tls ) |
Definition at line 218 of file arm-fbsd-tdep.c.
References aarch32_read_description(), ARM_FP_TYPE_NONE, ARM_FP_TYPE_VFPV2, ARM_FP_TYPE_VFPV3, arm_read_description(), HWCAP_NEON, HWCAP_VFP, HWCAP_VFPD32, HWCAP_VFPv3, and target_auxv_search().
Referenced by arm_fbsd_core_read_description(), arm_fbsd_read_description_auxv(), and arm_fbsd_nat_target::read_description().
|
static |
Definition at line 107 of file arm-fbsd-tdep.c.
References arm_fbsd_gregmap, arm_fbsd_vfpregmap, ARM_MCONTEXT_VFP_PTR_OFFSET, ARM_SIGFRAME_UCONTEXT_OFFSET, ARM_SP_REGNUM, ARM_UCONTEXT_MCONTEXT_OFFSET, frame_id_build(), func, gdbarch_byte_order(), get_frame_arch(), get_frame_register_unsigned(), regcache_map_entry_size(), safe_read_memory_unsigned_integer(), trad_frame_set_id(), and trad_frame_set_reg_regmap().
|
static |
Definition at line 163 of file arm-fbsd-tdep.c.
References reg_buffer::arch(), regnum, size, regcache::supply_regset(), and arm_gdbarch_tdep::tls_regnum.
|
static |
Definition at line 38 of file arm-fbsd-tdep.c.
Referenced by arm_fbsd_sigframe_init().
const struct regset arm_fbsd_gregset |
Definition at line 150 of file arm-fbsd-tdep.c.
Referenced by arm_fbsd_iterate_over_regset_sections(), arm_fbsd_nat_target::fetch_registers(), and arm_fbsd_nat_target::store_registers().
|
static |
Definition at line 134 of file arm-fbsd-tdep.c.
Referenced by arm_fbsd_init_abi().
|
static |
Definition at line 57 of file arm-fbsd-tdep.c.
const struct regset arm_fbsd_tls_regset |
Definition at line 184 of file arm-fbsd-tdep.c.
Referenced by arm_fbsd_iterate_over_regset_sections(), arm_fbsd_nat_target::fetch_registers(), and arm_fbsd_nat_target::store_registers().
|
static |
Definition at line 48 of file arm-fbsd-tdep.c.
Referenced by arm_fbsd_sigframe_init().
const struct regset arm_fbsd_vfpregset |
Definition at line 156 of file arm-fbsd-tdep.c.
Referenced by arm_fbsd_iterate_over_regset_sections(), arm_fbsd_nat_target::fetch_registers(), and arm_fbsd_nat_target::store_registers().