From 19671c2bed5867a22fd794843bec11d1c0f8f264 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Mon, 29 Nov 2004 15:20:28 +0000 Subject: * 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. --- gdb/sparcobsd-tdep.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'gdb/sparcobsd-tdep.c') diff --git a/gdb/sparcobsd-tdep.c b/gdb/sparcobsd-tdep.c index 47f64bb..7c3bcc9 100644 --- a/gdb/sparcobsd-tdep.c +++ b/gdb/sparcobsd-tdep.c @@ -147,14 +147,10 @@ sparc32obsd_init_abi (struct gdbarch_info info, struct gdbarch *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); } -- cgit v1.1