72 const gdb_byte sigreturn[] =
75 0x67, 0x00, 0x00, 0x00,
78 size_t buflen =
sizeof sigreturn;
95 buf = (gdb_byte *) alloca (buflen);
106 if (memcmp (buf, sigreturn, buflen) == 0)
187#define I386OBSD_UTHREAD_ESP_OFFSET 176
191 int regnum, CORE_ADDR addr)
200 gdb_assert (
regnum >= -1);
235 int regnum, CORE_ADDR addr)
244 gdb_assert (
regnum >= -1);
311 CORE_ADDR
func, sp, addr;
326 if (
name && startswith (
name,
"Xintr"))
364 void **this_cache,
int regnum)
375 void **this_prologue_cache)
387 return (
name && (strcmp (
name,
"calltrap") == 0
388 || strcmp (
name,
"syscall1") == 0
389 || startswith (
name,
"Xintr")
390 || startswith (
name,
"Xsoft")));
bool find_pc_partial_function(CORE_ADDR pc, const char **name, CORE_ADDR *address, CORE_ADDR *endaddr, const struct block **block)
void bsd_uthread_set_collect_uthread(struct gdbarch *gdbarch, void(*collect_uthread)(const struct regcache *, int, CORE_ADDR))
void bsd_uthread_set_supply_uthread(struct gdbarch *gdbarch, void(*supply_uthread)(struct regcache *, int, CORE_ADDR))
void raw_collect(int regnum, void *buf) const override
void raw_supply(int regnum, const void *buf) override
void write_memory(CORE_ADDR memaddr, const bfd_byte *myaddr, ssize_t len)
ULONGEST read_memory_unsigned_integer(CORE_ADDR memaddr, int len, enum bfd_endian byte_order)
void write_memory_unsigned_integer(CORE_ADDR addr, int len, enum bfd_endian byte_order, ULONGEST value)
void read_memory(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
static void store_unsigned_integer(gdb_byte *addr, int len, enum bfd_endian byte_order, ULONGEST val)
static ULONGEST extract_unsigned_integer(gdb::array_view< const gdb_byte > buf, enum bfd_endian byte_order)
const struct frame_id outer_frame_id
void frame_unwind_prepend_unwinder(struct gdbarch *gdbarch, const struct frame_unwind *unwinder)
enum unwind_stop_reason default_frame_unwind_stop_reason(frame_info_ptr this_frame, void **this_cache)
ULONGEST get_frame_register_unsigned(frame_info_ptr frame, int regnum)
CORE_ADDR get_frame_pc(frame_info_ptr frame)
struct frame_id frame_id_build(CORE_ADDR stack_addr, CORE_ADDR code_addr)
struct gdbarch * get_frame_arch(frame_info_ptr this_frame)
CORE_ADDR get_frame_func(frame_info_ptr this_frame)
bool safe_frame_unwind_memory(frame_info_ptr this_frame, CORE_ADDR addr, gdb::array_view< gdb_byte > buffer)
enum bfd_endian gdbarch_byte_order(struct gdbarch *gdbarch)
void i386bsd_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
int i386obsd_sc_reg_offset[I386_NUM_GREGS]
static void i386obsd_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
CORE_ADDR i386obsd_sigtramp_end_addr
static const int i386obsd_page_size
static void i386obsd_supply_uthread(struct regcache *regcache, int regnum, CORE_ADDR addr)
static const struct frame_unwind i386obsd_trapframe_unwind
static int i386obsd_tf_reg_offset[]
CORE_ADDR i386obsd_sigtramp_start_addr
#define I386OBSD_UTHREAD_ESP_OFFSET
static struct value * i386obsd_trapframe_prev_register(frame_info_ptr this_frame, void **this_cache, int regnum)
static int i386obsd_sigtramp_p(frame_info_ptr this_frame)
static void i386obsd_collect_uthread(const struct regcache *regcache, int regnum, CORE_ADDR addr)
static int i386obsd_r_reg_offset[]
static struct trad_frame_cache * i386obsd_trapframe_cache(frame_info_ptr this_frame, void **this_cache)
static void i386obsd_trapframe_this_id(frame_info_ptr this_frame, void **this_cache, struct frame_id *this_id)
static int i386obsd_uthread_reg_offset[]
void _initialize_i386obsd_tdep()
static const int i386obsd_sigreturn_offset[]
static int i386obsd_trapframe_sniffer(const struct frame_unwind *self, frame_info_ptr this_frame, void **this_prologue_cache)
void i386_elf_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
struct obj_section * find_pc_section(CORE_ADDR pc)
void obsd_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
void gdbarch_register_osabi(enum bfd_architecture arch, unsigned long machine, enum gdb_osabi osabi, void(*init_osabi)(struct gdbarch_info, struct gdbarch *))
void(* func)(remote_target *remote, char *)
void set_solib_svr4_fetch_link_map_offsets(struct gdbarch *gdbarch, struct link_map_offsets *(*flmo)(void))
struct link_map_offsets * svr4_ilp32_fetch_link_map_offsets(void)
int(* sigtramp_p)(frame_info_ptr)
frame_info_ptr this_frame
struct trad_frame_cache * trad_frame_cache_zalloc(frame_info_ptr this_frame)
void trad_frame_set_reg_addr(struct trad_frame_cache *this_trad_cache, int regnum, CORE_ADDR addr)
void trad_frame_get_id(struct trad_frame_cache *this_trad_cache, struct frame_id *this_id)
void trad_frame_set_id(struct trad_frame_cache *this_trad_cache, struct frame_id this_id)
struct value * trad_frame_get_register(struct trad_frame_cache *this_trad_cache, frame_info_ptr this_frame, int regnum)