1 /* Target-dependent code for DragonFly/i386.
3 Copyright (C) 2003, 2004, 2005, 2007, 2008, 2009
4 Free Software Foundation, Inc.
6 This file is part of GDB.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>. */
22 #include "arch-utils.h"
27 #include "gdb_assert.h"
29 #include "i386-tdep.h"
30 #include "i387-tdep.h"
31 #include "bsd-uthread.h"
32 #include "solib-svr4.h"
34 static int i386dfly_r_reg_offset[] =
54 /* Sigtramp routine location. */
55 CORE_ADDR i386dfly_sigtramp_start_addr = 0xbfbfdf20;
56 CORE_ADDR i386dfly_sigtramp_end_addr = 0xbfbfdff0;
58 int i386dfly_sc_reg_offset[] =
79 i386dfly_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
81 struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
83 i386fbsd4_init_abi(info, gdbarch);
85 tdep->gregset_reg_offset = i386dfly_r_reg_offset;
86 tdep->gregset_num_regs = ARRAY_SIZE (i386dfly_r_reg_offset);
87 tdep->sizeof_gregset = 80;
89 tdep->sc_reg_offset = i386dfly_sc_reg_offset;
90 tdep->sc_num_regs = ARRAY_SIZE (i386dfly_sc_reg_offset);
94 /* Provide a prototype to silence -Wmissing-prototypes. */
95 void _initialize_i386dfly_tdep (void);
98 _initialize_i386dfly_tdep (void)
100 gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_DRAGONFLY,