GDB (xrefs)
|
#include "defs.h"
#include "frame.h"
#include "frame-unwind.h"
#include "gdbcore.h"
#include "symtab.h"
#include "objfiles.h"
#include "osabi.h"
#include "regcache.h"
#include "regset.h"
#include "target.h"
#include "trad-frame.h"
#include "obsd-tdep.h"
#include "amd64-tdep.h"
#include "i387-tdep.h"
#include "gdbsupport/x86-xstate.h"
#include "solib-svr4.h"
#include "bsd-uthread.h"
Go to the source code of this file.
Macros | |
#define | AMD64OBSD_UTHREAD_RSP_OFFSET 400 |
#define | amd64obsd_tf_reg_offset amd64obsd_sc_reg_offset |
Functions | |
static int | amd64obsd_sigtramp_p (frame_info_ptr this_frame) |
static CORE_ADDR | amd64obsd_sigcontext_addr (frame_info_ptr this_frame) |
static void | amd64obsd_supply_uthread (struct regcache *regcache, int regnum, CORE_ADDR addr) |
static void | amd64obsd_collect_uthread (const struct regcache *regcache, int regnum, CORE_ADDR addr) |
static struct trad_frame_cache * | amd64obsd_trapframe_cache (frame_info_ptr this_frame, void **this_cache) |
static void | amd64obsd_trapframe_this_id (frame_info_ptr this_frame, void **this_cache, struct frame_id *this_id) |
static struct value * | amd64obsd_trapframe_prev_register (frame_info_ptr this_frame, void **this_cache, int regnum) |
static int | amd64obsd_trapframe_sniffer (const struct frame_unwind *self, frame_info_ptr this_frame, void **this_prologue_cache) |
static void | amd64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) |
void | _initialize_amd64obsd_tdep () |
Variables | |
static const int | amd64obsd_page_size = 4096 |
int | amd64obsd_r_reg_offset [] |
static int | amd64obsd_sc_reg_offset [] |
static int | amd64obsd_uthread_reg_offset [] |
static const struct frame_unwind | amd64obsd_trapframe_unwind |
#define amd64obsd_tf_reg_offset amd64obsd_sc_reg_offset |
Definition at line 315 of file amd64-obsd-tdep.c.
Referenced by amd64obsd_trapframe_cache().
#define AMD64OBSD_UTHREAD_RSP_OFFSET 400 |
Definition at line 218 of file amd64-obsd-tdep.c.
Referenced by amd64obsd_collect_uthread(), and amd64obsd_supply_uthread().
void _initialize_amd64obsd_tdep | ( | ) |
Definition at line 455 of file amd64-obsd-tdep.c.
References AMD64_NUM_GREGS, amd64obsd_init_abi(), amd64obsd_r_reg_offset, GDB_OSABI_OPENBSD, and gdbarch_register_osabi().
|
static |
Definition at line 265 of file amd64-obsd-tdep.c.
References AMD64_RIP_REGNUM, AMD64_RSP_REGNUM, amd64obsd_uthread_reg_offset, AMD64OBSD_UTHREAD_RSP_OFFSET, reg_buffer::arch(), extract_unsigned_integer(), gdbarch_byte_order(), reg_buffer::raw_collect(), read_memory_unsigned_integer(), regnum, write_memory(), and write_memory_unsigned_integer().
Referenced by amd64obsd_init_abi().
|
static |
Definition at line 421 of file amd64-obsd-tdep.c.
References amd64_init_abi(), amd64_target_description(), amd64obsd_collect_uthread(), amd64obsd_r_reg_offset, amd64obsd_sc_reg_offset, amd64obsd_sigcontext_addr(), amd64obsd_sigtramp_p(), amd64obsd_supply_uthread(), amd64obsd_trapframe_unwind, bsd_uthread_set_collect_uthread(), bsd_uthread_set_supply_uthread(), frame_unwind_prepend_unwinder(), i386_gdbarch_tdep::gregset_num_regs, i386_gdbarch_tdep::gregset_reg_offset, i386_gdbarch_tdep::jb_pc_offset, obsd_init_abi(), i386_gdbarch_tdep::sc_num_regs, i386_gdbarch_tdep::sc_reg_offset, set_solib_svr4_fetch_link_map_offsets(), i386_gdbarch_tdep::sigcontext_addr, i386_gdbarch_tdep::sigtramp_p, i386_gdbarch_tdep::sizeof_gregset, and svr4_lp64_fetch_link_map_offsets().
Referenced by _initialize_amd64obsd_tdep().
|
static |
Definition at line 101 of file amd64-obsd-tdep.c.
References AMD64_RDI_REGNUM, AMD64_RSP_REGNUM, amd64obsd_page_size, get_frame_pc(), and get_frame_register_unsigned().
Referenced by amd64obsd_init_abi().
|
static |
Definition at line 48 of file amd64-obsd-tdep.c.
References amd64obsd_page_size, find_pc_partial_function(), find_pc_section(), get_frame_pc(), name, and safe_frame_unwind_memory().
Referenced by amd64obsd_init_abi().
|
static |
Definition at line 221 of file amd64-obsd-tdep.c.
References AMD64_RIP_REGNUM, AMD64_RSP_REGNUM, amd64obsd_uthread_reg_offset, AMD64OBSD_UTHREAD_RSP_OFFSET, reg_buffer::arch(), gdbarch_byte_order(), reg_buffer::raw_supply(), read_memory(), read_memory_unsigned_integer(), regnum, and store_unsigned_integer().
Referenced by amd64obsd_init_abi().
|
static |
Definition at line 318 of file amd64-obsd-tdep.c.
References AMD64_CS_REGNUM, AMD64_RSP_REGNUM, amd64obsd_tf_reg_offset, find_pc_partial_function(), frame_id_build(), func, gdbarch_byte_order(), get_frame_arch(), get_frame_func(), get_frame_register_unsigned(), I386_SEL_RPL, I386_SEL_UPL, name, outer_frame_id, read_memory_unsigned_integer(), trad_frame_cache::this_frame, trad_frame_cache_zalloc(), trad_frame_set_id(), and trad_frame_set_reg_addr().
Referenced by amd64obsd_trapframe_prev_register(), and amd64obsd_trapframe_this_id().
|
static |
Definition at line 375 of file amd64-obsd-tdep.c.
References amd64obsd_trapframe_cache(), regnum, trad_frame_cache::this_frame, and trad_frame_get_register().
|
static |
Definition at line 385 of file amd64-obsd-tdep.c.
References AMD64_CS_REGNUM, find_pc_partial_function(), get_frame_pc(), get_frame_register_unsigned(), I386_SEL_RPL, I386_SEL_UPL, name, and trad_frame_cache::this_frame.
|
static |
Definition at line 365 of file amd64-obsd-tdep.c.
References amd64obsd_trapframe_cache(), trad_frame_cache::this_frame, trad_frame_cache::this_id, and trad_frame_get_id().
|
static |
Definition at line 42 of file amd64-obsd-tdep.c.
Referenced by amd64obsd_sigcontext_addr(), and amd64obsd_sigtramp_p().
int amd64obsd_r_reg_offset[] |
Definition at line 130 of file amd64-obsd-tdep.c.
Referenced by _initialize_amd64obsd_nat(), _initialize_amd64obsd_tdep(), and amd64obsd_init_abi().
|
static |
Definition at line 159 of file amd64-obsd-tdep.c.
Referenced by amd64obsd_init_abi().
|
static |
Definition at line 405 of file amd64-obsd-tdep.c.
Referenced by amd64obsd_init_abi().
|
static |
Definition at line 188 of file amd64-obsd-tdep.c.
Referenced by amd64obsd_collect_uthread(), and amd64obsd_supply_uthread().