* sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
* sparcobsd-tdep.c (sparc32obsd_init_abi): Call
sparc32nbsd_elf_init_abi. Remove duplicate code.
2004-11-29 Mark Kettenis <kettenis@gnu.org>
+ * sparc-tdep.h (sparc32nbsd_elf_init_abi): New prototype.
+ * sparcnbsd-tdep.c (sparc32nbsd_elf_init_abi): Make global.
+ * sparcobsd-tdep.c (sparc32obsd_init_abi): Call
+ sparc32nbsd_elf_init_abi. Remove duplicate code.
+
* config/sparc/nbsdaout.mh (NAT_FILE): Set to solib.h.
* config/sparc/nbsdelf.mh (NAT_FILE): Remove variable.
* config/sparc/nm-nbsd.h: Remove file.
/* Register offsets for NetBSD. */
extern const struct sparc_gregset sparc32nbsd_gregset;
+extern void sparc32nbsd_elf_init_abi (struct gdbarch_info info,
+ struct gdbarch *gdbarch);
+
extern struct trad_frame_saved_reg *
sparc32nbsd_sigcontext_saved_regs (struct frame_info *next_frame);
sparc32nbsd_init_abi (info, gdbarch);
}
-static void
+void
sparc32nbsd_elf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
{
sparc32nbsd_init_abi (info, gdbarch);
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
- /* OpenBSD doesn't support the 128-bit `long double' from the psABI. */
- set_gdbarch_long_double_bit (gdbarch, 64);
- set_gdbarch_long_double_format (gdbarch, &floatformat_ieee_double_big);
+ /* OpenBSD/sparc is very similar to NetBSD/sparc ELF. */
+ sparc32nbsd_elf_init_abi (info, gdbarch);
frame_unwind_append_sniffer (gdbarch, sparc32obsd_sigtramp_frame_sniffer);
-
- set_solib_svr4_fetch_link_map_offsets
- (gdbarch, svr4_ilp32_fetch_link_map_offsets);
}
\f