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 "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 |
Variables | |
static const struct regset | amd64obsd_combined_regset |
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 352 of file amd64obsd-tdep.c.
Referenced by amd64obsd_trapframe_cache().
#define AMD64OBSD_UTHREAD_RSP_OFFSET 400 |
Definition at line 255 of file amd64obsd-tdep.c.
Referenced by amd64obsd_collect_uthread(), and amd64obsd_supply_uthread().
void _initialize_amd64obsd_tdep | ( | void | ) |
Definition at line 503 of file amd64obsd-tdep.c.
References AMD64_NUM_GREGS, amd64obsd_core_init_abi(), amd64obsd_init_abi(), amd64obsd_r_reg_offset, gdb_assert, GDB_OSABI_NETBSD_AOUT, GDB_OSABI_OPENBSD_ELF, and gdbarch_register_osabi().
|
static |
Definition at line 302 of file amd64obsd-tdep.c.
References AMD64_RIP_REGNUM, AMD64_RSP_REGNUM, amd64obsd_uthread_reg_offset, AMD64OBSD_UTHREAD_RSP_OFFSET, gdbarch::byte_order, extract_unsigned_integer(), gdb_assert, gdbarch_byte_order(), get_regcache_arch(), offset, read_memory_unsigned_integer(), regcache_raw_collect(), write_memory(), and write_memory_unsigned_integer().
Referenced by amd64obsd_init_abi().
|
static |
Definition at line 490 of file amd64obsd-tdep.c.
References amd64obsd_init_abi(), amd64obsd_iterate_over_regset_sections(), and set_gdbarch_iterate_over_regset_sections().
Referenced by _initialize_amd64obsd_tdep().
|
static |
Definition at line 456 of file amd64obsd-tdep.c.
References amd64_init_abi(), amd64obsd_collect_uthread(), amd64obsd_r_reg_offset, amd64obsd_sc_reg_offset, amd64obsd_sigcontext_addr(), amd64obsd_sigtramp_p(), amd64obsd_supply_uthread(), bsd_uthread_set_collect_uthread(), bsd_uthread_set_supply_uthread(), frame_unwind_prepend_unwinder(), gdbarch_tdep(), gdbarch_tdep::gregset_num_regs, gdbarch_tdep::gregset_reg_offset, gdbarch_tdep::jb_pc_offset, obsd_init_abi(), gdbarch_tdep::sc_num_regs, gdbarch_tdep::sc_reg_offset, set_solib_svr4_fetch_link_map_offsets(), gdbarch_tdep::sigcontext_addr, gdbarch_tdep::sigtramp_p, gdbarch_tdep::sizeof_gregset, and svr4_lp64_fetch_link_map_offsets().
Referenced by _initialize_amd64obsd_tdep(), and amd64obsd_core_init_abi().
|
static |
Definition at line 61 of file amd64obsd-tdep.c.
References gdbarch_tdep(), I387_SIZEOF_FXSAVE, and gdbarch_tdep::sizeof_gregset.
Referenced by amd64obsd_core_init_abi().
|
static |
Definition at line 138 of file amd64obsd-tdep.c.
References AMD64_RDI_REGNUM, AMD64_RSP_REGNUM, amd64obsd_page_size, get_frame_pc(), get_frame_register_unsigned(), offset, and gdbarch_tdep::pc.
Referenced by amd64obsd_init_abi().
|
static |
Definition at line 85 of file amd64obsd-tdep.c.
References amd64obsd_page_size, find_pc_partial_function(), find_pc_section(), get_frame_pc(), name, gdbarch_tdep::pc, and safe_frame_unwind_memory().
Referenced by amd64obsd_init_abi().
|
static |
Definition at line 41 of file amd64obsd-tdep.c.
References amd64_supply_fxsave(), gdb_assert, gdbarch_tdep(), get_regcache_arch(), i386_supply_gregset(), I387_SIZEOF_FXSAVE, and gdbarch_tdep::sizeof_gregset.
|
static |
Definition at line 258 of file amd64obsd-tdep.c.
References AMD64_RIP_REGNUM, AMD64_RSP_REGNUM, amd64obsd_uthread_reg_offset, AMD64OBSD_UTHREAD_RSP_OFFSET, gdbarch::byte_order, gdb_assert, gdbarch_byte_order(), get_regcache_arch(), offset, read_memory(), read_memory_unsigned_integer(), regcache_raw_supply(), and store_unsigned_integer().
Referenced by amd64obsd_init_abi().
|
static |
Definition at line 355 of file amd64obsd-tdep.c.
References AMD64_CS_REGNUM, AMD64_RSP_REGNUM, amd64obsd_tf_reg_offset, gdbarch::byte_order, 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(), startswith(), 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 412 of file amd64obsd-tdep.c.
References amd64obsd_trapframe_cache(), and trad_frame_get_register().
|
static |
Definition at line 422 of file amd64obsd-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 startswith().
|
static |
Definition at line 402 of file amd64obsd-tdep.c.
References amd64obsd_trapframe_cache(), and trad_frame_get_id().
Definition at line 55 of file amd64obsd-tdep.c.
Definition at line 79 of file amd64obsd-tdep.c.
Referenced by amd64obsd_sigcontext_addr(), and amd64obsd_sigtramp_p().
int amd64obsd_r_reg_offset[] |
Definition at line 167 of file amd64obsd-tdep.c.
Referenced by _initialize_amd64obsd_nat(), _initialize_amd64obsd_tdep(), and amd64obsd_init_abi().
|
static |
Definition at line 196 of file amd64obsd-tdep.c.
Referenced by amd64obsd_init_abi().
|
static |
Definition at line 442 of file amd64obsd-tdep.c.
|
static |
Definition at line 225 of file amd64obsd-tdep.c.
Referenced by amd64obsd_collect_uthread(), and amd64obsd_supply_uthread().