75 0x67, 0x00, 0x00, 0x00,
78 size_t buflen =
sizeof sigreturn;
95 buf = alloca (buflen);
106 if (memcmp (buf, sigreturn, buflen) == 0)
152 static const struct regset i386obsd_aout_gregset =
169 &i386obsd_aout_gregset, NULL, cb_data);
221 #define I386OBSD_UTHREAD_ESP_OFFSET 176
253 && (regnum == -1 || regnum == i))
301 && (regnum == -1 || regnum == i))
396 static struct value *
398 void **this_cache,
int regnum)
409 void **this_prologue_cache)
421 return (name && (strcmp (name,
"calltrap") == 0
422 || strcmp (name,
"syscall1") == 0
516 #define GDB_OSABI_OPENBSD_AOUT GDB_OSABI_NETBSD_AOUT
void i386_supply_gregset(const struct regset *regset, struct regcache *regcache, int regnum, const void *gregs, size_t len)
ULONGEST extract_unsigned_integer(const gdb_byte *, int, enum bfd_endian)
void trad_frame_set_reg_addr(struct trad_frame_cache *this_trad_cache, int regnum, CORE_ADDR addr)
struct frame_id frame_id_build(CORE_ADDR stack_addr, CORE_ADDR code_addr)
CORE_ADDR get_frame_pc(struct frame_info *frame)
void i386bsd_init_abi(struct gdbarch_info, struct gdbarch *)
struct gdbarch * get_regcache_arch(const struct regcache *regcache)
void write_memory_unsigned_integer(CORE_ADDR addr, int len, enum bfd_endian byte_order, ULONGEST value)
static void i386obsd_supply_uthread(struct regcache *regcache, int regnum, CORE_ADDR addr)
static struct trad_frame_cache * i386obsd_trapframe_cache(struct frame_info *this_frame, void **this_cache)
void trad_frame_set_id(struct trad_frame_cache *this_trad_cache, struct frame_id this_id)
CORE_ADDR i386obsd_sigtramp_end_addr
#define GDB_OSABI_OPENBSD_AOUT
struct link_map_offsets * svr4_ilp32_fetch_link_map_offsets(void)
void i387_supply_fsave(struct regcache *regcache, int regnum, const void *fsave)
void bsd_uthread_set_collect_uthread(struct gdbarch *gdbarch, void(*collect_uthread)(const struct regcache *, int, CORE_ADDR))
struct gdbarch_tdep * gdbarch_tdep(struct gdbarch *gdbarch)
void obsd_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
static const int i386obsd_sigreturn_offset[]
void frame_unwind_prepend_unwinder(struct gdbarch *gdbarch, const struct frame_unwind *unwinder)
void store_unsigned_integer(gdb_byte *, int, enum bfd_endian, ULONGEST)
void trad_frame_get_id(struct trad_frame_cache *this_trad_cache, struct frame_id *this_id)
void _initialize_i386obsd_tdep(void)
enum struct_return struct_return
static void i386obsd_aout_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
int safe_frame_unwind_memory(struct frame_info *this_frame, CORE_ADDR addr, gdb_byte *buf, int len)
enum bfd_endian gdbarch_byte_order(struct gdbarch *gdbarch)
void set_solib_svr4_fetch_link_map_offsets(struct gdbarch *gdbarch, struct link_map_offsets *(*flmo)(void))
int find_pc_partial_function(CORE_ADDR pc, const char **name, CORE_ADDR *address, CORE_ADDR *endaddr)
static int i386obsd_trapframe_sniffer(const struct frame_unwind *self, struct frame_info *this_frame, void **this_prologue_cache)
static int startswith(const char *string, const char *pattern)
struct trad_frame_cache * trad_frame_cache_zalloc(struct frame_info *this_frame)
static void i386obsd_collect_uthread(const struct regcache *regcache, int regnum, CORE_ADDR addr)
static int i386obsd_tf_reg_offset[]
void read_memory(CORE_ADDR memaddr, gdb_byte *myaddr, ssize_t len)
void( iterate_over_regset_sections_cb)(const char *sect_name, int size, const struct regset *regset, const char *human_name, void *cb_data)
struct obj_section * find_pc_section(CORE_ADDR pc)
ULONGEST get_frame_register_unsigned(struct frame_info *frame, int regnum)
struct frame_info * this_frame
static const int i386obsd_page_size
static void i386obsd_aout_supply_regset(const struct regset *regset, struct regcache *regcache, int regnum, const void *regs, size_t len)
static void i386obsd_trapframe_this_id(struct frame_info *this_frame, void **this_cache, struct frame_id *this_id)
static int i386obsd_r_reg_offset[]
static int i386obsd_sigtramp_p(struct frame_info *this_frame)
int(* sigtramp_p)(struct frame_info *)
static void i386obsd_elf_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
void i386_elf_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)
int i386obsd_sc_reg_offset[I386_NUM_GREGS]
#define I387_SIZEOF_FSAVE
struct m32c_reg regs[M32C_MAX_NUM_REGS]
void regcache_raw_supply(struct regcache *regcache, int regnum, const void *buf)
unsigned long long ULONGEST
enum unwind_stop_reason default_frame_unwind_stop_reason(struct frame_info *this_frame, void **this_cache)
const struct frame_id outer_frame_id
#define I386OBSD_UTHREAD_ESP_OFFSET
void regcache_raw_collect(const struct regcache *regcache, int regnum, void *buf)
static void i386obsd_aout_iterate_over_regset_sections(struct gdbarch *gdbarch, iterate_over_regset_sections_cb *cb, void *cb_data, const struct regcache *regcache)
ULONGEST read_memory_unsigned_integer(CORE_ADDR memaddr, int len, enum bfd_endian byte_order)
static struct value * i386obsd_trapframe_prev_register(struct frame_info *this_frame, void **this_cache, int regnum)
void set_gdbarch_iterate_over_regset_sections(struct gdbarch *gdbarch, gdbarch_iterate_over_regset_sections_ftype iterate_over_regset_sections)
void write_memory(CORE_ADDR memaddr, const bfd_byte *myaddr, ssize_t len)
void bsd_uthread_set_supply_uthread(struct gdbarch *gdbarch, void(*supply_uthread)(struct regcache *, int, CORE_ADDR))
struct value * trad_frame_get_register(struct trad_frame_cache *this_trad_cache, struct frame_info *this_frame, int regnum)
enum bfd_endian byte_order
CORE_ADDR get_frame_func(struct frame_info *this_frame)
void gdbarch_register_osabi(enum bfd_architecture arch, unsigned long machine, enum gdb_osabi osabi, void(*init_osabi)(struct gdbarch_info, struct gdbarch *))
static int i386obsd_uthread_reg_offset[]
CORE_ADDR i386obsd_sigtramp_start_addr
struct gdbarch * get_frame_arch(struct frame_info *this_frame)
const ULONGEST const LONGEST len
static void i386obsd_init_abi(struct gdbarch_info info, struct gdbarch *gdbarch)