* i386nbsd-tdep.c: Don't include "gdbtypes.h". Include
authorMark Kettenis <kettenis@gnu.org>
Thu, 27 Nov 2003 13:28:50 +0000 (13:28 +0000)
committerMark Kettenis <kettenis@gnu.org>
Thu, 27 Nov 2003 13:28:50 +0000 (13:28 +0000)
commit13739f4d37e1ffa9021c2ea87e8e81cca67ed615
tree091ef9e8955fa2adde40575c84c70a54d6b9acab
parent597684c51b38f2cd78c5017c2cfc24e3b2bd4096
* i386nbsd-tdep.c: Don't include "gdbtypes.h".  Include
"gdb_assert.h" and "gdb_string.h".
(i386nbsd_r_reg_offset): Rename from regmap.
(SIZEOF_STRUCT_REG): Remove.
(i386nbsd_supply_reg, fetch_core_registers,
fetch_elfcore_registers, i386nbsd_core_fns, i386nbsd_elfcore_fns):
Remove.
(i386nbsd_aout_supply_regset,
i386nbsd_aout_regset_from_core_section): New functions.
(i386nbsd_sc_reg_offset): Don't explicitly specify size of array.
(i386nbsd_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs amd sizeof_gregset.  Use ARRAY_SIZE to
initialize TDEP->sc_num_regs.
(i386nbsdaout_init_abi): New function.
(i386nbsdelf_init_abi): Remove initialization of
TDEP->num_xmm_regs.  Don't set num_regs here.
(_initialize_i386nbsd_tdep): Don't call add_core_fns.  Use
i386nbsd_aout_init to register NetBSD a.out OS/ABI.
gdb/ChangeLog
gdb/i386nbsd-tdep.c