static void i386fbsd4_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); /* Generic FreeBSD support. */ fbsd_init_abi (info, gdbarch); /* Inherit stuff from older releases. We assume that FreeBSD 4.0-RELEASE always uses ELF. */ i386fbsd_init_abi (info, gdbarch); /* FreeBSD 4.0 introduced a new `struct reg'. */ tdep->gregset_reg_offset = i386fbsd4_r_reg_offset; tdep->gregset_num_regs = ARRAY_SIZE (i386fbsd4_r_reg_offset); tdep->sizeof_gregset = 19 * 4; /* FreeBSD 4.0 introduced a new `struct sigcontext'. */ tdep->sc_reg_offset = i386fbsd4_sc_reg_offset; tdep->sc_num_regs = ARRAY_SIZE (i386fbsd4_sc_reg_offset); tdep->xsave_xcr0_offset = I386_FBSD_XSAVE_XCR0_OFFSET; /* Iterate over core file register note sections. */ set_gdbarch_iterate_over_regset_sections (gdbarch, i386fbsd_iterate_over_regset_sections); set_gdbarch_core_read_description (gdbarch, i386fbsd_core_read_description); }
static void i386fbsd4_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); /* Inherit stuff from older releases. We assume that FreeBSD 4.0-RELEASE always uses ELF. */ i386fbsd_init_abi (info, gdbarch); /* FreeBSD 4.0 introduced a new `struct sigcontext'. */ tdep->sc_pc_offset = i386fbsd4_sc_pc_offset; tdep->sc_sp_offset = i386fbsd4_sc_sp_offset; }
static void i386fbsd4_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) { struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); /* Inherit stuff from older releases. We assume that FreeBSD 4.0-RELEASE always uses ELF. */ i386fbsd_init_abi (info, gdbarch); /* FreeBSD 4.0 introduced a new `struct reg'. */ tdep->gregset_reg_offset = i386fbsd4_r_reg_offset; tdep->gregset_num_regs = ARRAY_SIZE (i386fbsd4_r_reg_offset); tdep->sizeof_gregset = 19 * 4; /* FreeBSD 4.0 introduced a new `struct sigcontext'. */ tdep->sc_reg_offset = i386fbsd4_sc_reg_offset; tdep->sc_num_regs = ARRAY_SIZE (i386fbsd4_sc_reg_offset); }