GDB (xrefs)
|
#include "defs.h"
#include "osabi.h"
#include "regcache.h"
#include "regset.h"
#include "trad-frame.h"
#include "tramp-frame.h"
#include "i386-fbsd-tdep.h"
#include "gdbsupport/x86-xstate.h"
#include "i386-tdep.h"
#include "i387-tdep.h"
#include "fbsd-tdep.h"
#include "solib-svr4.h"
#include "inferior.h"
Go to the source code of this file.
Macros | |
#define | I386_FBSD_SIZEOF_GREGSET (19 * 4) |
#define | I386_FBSD_SIZEOF_SEGBASES_REGSET (2 * 4) |
#define | I386_SIGFRAME_UCONTEXT_OFFSET 32 |
#define | I386_UCONTEXT_MCONTEXT_OFFSET 16 |
#define | I386_SIZEOF_MCONTEXT_T 640 |
Functions | |
static void | i386_fbsd_sigframe_init (const struct tramp_frame *self, frame_info_ptr this_frame, struct trad_frame_cache *this_cache, CORE_ADDR func) |
uint64_t | i386fbsd_core_read_xcr0 (bfd *abfd) |
static const struct target_desc * | i386fbsd_core_read_description (struct gdbarch *gdbarch, struct target_ops *target, bfd *abfd) |
static void | i386fbsd_supply_xstateregset (const struct regset *regset, struct regcache *regcache, int regnum, const void *xstateregs, size_t len) |
static void | i386fbsd_collect_xstateregset (const struct regset *regset, const struct regcache *regcache, int regnum, void *xstateregs, size_t len) |
static void | i386fbsd_iterate_over_regset_sections (struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache) |
static CORE_ADDR | i386fbsd_get_thread_local_address (struct gdbarch *gdbarch, ptid_t ptid, CORE_ADDR lm_addr, CORE_ADDR offset) |
static void | i386fbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) |
void | _initialize_i386fbsd_tdep () |
Variables | |
static const struct regcache_map_entry | i386_fbsd_gregmap [] |
static const struct regcache_map_entry | i386_fbsd_segbases_regmap [] |
static const struct regcache_map_entry | i386_fbsd_mcregmap [] |
const struct regset | i386_fbsd_gregset |
const struct regset | i386_fbsd_segbases_regset |
static const struct tramp_frame | i386_fbsd_sigframe |
static const struct tramp_frame | i386_fbsd64_sigframe |
static const struct regset | i386fbsd_xstateregset |
#define I386_FBSD_SIZEOF_GREGSET (19 * 4) |
Definition at line 36 of file i386-fbsd-tdep.c.
#define I386_FBSD_SIZEOF_SEGBASES_REGSET (2 * 4) |
Definition at line 39 of file i386-fbsd-tdep.c.
#define I386_SIGFRAME_UCONTEXT_OFFSET 32 |
Definition at line 151 of file i386-fbsd-tdep.c.
#define I386_SIZEOF_MCONTEXT_T 640 |
Definition at line 153 of file i386-fbsd-tdep.c.
#define I386_UCONTEXT_MCONTEXT_OFFSET 16 |
Definition at line 152 of file i386-fbsd-tdep.c.
void _initialize_i386fbsd_tdep | ( | ) |
Definition at line 409 of file i386-fbsd-tdep.c.
References GDB_OSABI_FREEBSD, gdbarch_register_osabi(), and i386fbsd_init_abi().
|
static |
Definition at line 158 of file i386-fbsd-tdep.c.
References frame_id_build(), func, get_frame_register_unsigned(), I386_ESP_REGNUM, i386_fbsd_mcregmap, I386_SIGFRAME_UCONTEXT_OFFSET, I386_SIZEOF_MCONTEXT_T, I386_UCONTEXT_MCONTEXT_OFFSET, trad_frame_set_id(), and trad_frame_set_reg_regmap().
|
static |
Definition at line 304 of file i386-fbsd-tdep.c.
References i387_collect_xsave(), and regnum.
|
static |
Definition at line 284 of file i386-fbsd-tdep.c.
References i386_target_description(), and i386fbsd_core_read_xcr0().
Referenced by i386fbsd_init_abi().
uint64_t i386fbsd_core_read_xcr0 | ( | bfd * | abfd | ) |
Definition at line 247 of file i386-fbsd-tdep.c.
References I386_FBSD_XSAVE_XCR0_OFFSET, and size.
Referenced by amd64fbsd_core_read_description(), and i386fbsd_core_read_description().
|
static |
Definition at line 347 of file i386-fbsd-tdep.c.
References readable_regcache::cooked_read(), current_inferior(), fbsd_get_thread_local_address(), gdbarch_ptr_bit(), get_thread_arch_regcache(), I386_GSBASE_REGNUM, lm_addr(), regcache::ptid(), and target_fetch_registers().
Referenced by i386fbsd_init_abi().
|
static |
Definition at line 366 of file i386-fbsd-tdep.c.
References fbsd_init_abi(), i386_elf_init_abi(), i386_fbsd64_sigframe, i386_fbsd_sigframe, I386_FBSD_XSAVE_XCR0_OFFSET, i386bsd_init_abi(), i386fbsd_core_read_description(), i386fbsd_get_thread_local_address(), i386fbsd_iterate_over_regset_sections(), reg_struct_return, 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_solib_svr4_fetch_link_map_offsets(), i386_gdbarch_tdep::sizeof_fpregset, svr4_fetch_objfile_link_map(), svr4_ilp32_fetch_link_map_offsets(), tramp_frame_prepend_unwinder(), and i386_gdbarch_tdep::xsave_xcr0_offset.
Referenced by _initialize_i386fbsd_tdep().
|
static |
Definition at line 323 of file i386-fbsd-tdep.c.
References i386_fbsd_gregset, i386_fbsd_segbases_regset, I386_FBSD_SIZEOF_GREGSET, I386_FBSD_SIZEOF_SEGBASES_REGSET, i386_fpregset, i386fbsd_xstateregset, i386_gdbarch_tdep::sizeof_fpregset, and i386_gdbarch_tdep::xcr0.
Referenced by i386fbsd_init_abi().
|
static |
Definition at line 294 of file i386-fbsd-tdep.c.
References i387_supply_xsave(), and regnum.
|
static |
Definition at line 221 of file i386-fbsd-tdep.c.
Referenced by i386fbsd_init_abi().
|
static |
Definition at line 43 of file i386-fbsd-tdep.c.
const struct regset i386_fbsd_gregset |
Definition at line 111 of file i386-fbsd-tdep.c.
Referenced by i386_fbsd_nat_target::fetch_registers(), i386fbsd_iterate_over_regset_sections(), and i386_fbsd_nat_target::store_registers().
|
static |
Definition at line 77 of file i386-fbsd-tdep.c.
Referenced by i386_fbsd_sigframe_init().
|
static |
Definition at line 67 of file i386-fbsd-tdep.c.
const struct regset i386_fbsd_segbases_regset |
Definition at line 116 of file i386-fbsd-tdep.c.
Referenced by i386fbsd_iterate_over_regset_sections().
|
static |
Definition at line 181 of file i386-fbsd-tdep.c.
Referenced by i386fbsd_init_abi().
|
static |
Definition at line 313 of file i386-fbsd-tdep.c.
Referenced by i386fbsd_iterate_over_regset_sections().