diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-11-29 15:20:28 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-11-29 15:20:28 +0000 |
commit | 19671c2bed5867a22fd794843bec11d1c0f8f264 (patch) | |
tree | 902ec75fe51816215a9afc6629d09b42201665b5 /gdb/sparcobsd-tdep.c | |
parent | a7498ae6da27216b89836d96a72ce166ef883030 (diff) | |
download | gdb-19671c2bed5867a22fd794843bec11d1c0f8f264.zip gdb-19671c2bed5867a22fd794843bec11d1c0f8f264.tar.gz gdb-19671c2bed5867a22fd794843bec11d1c0f8f264.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/sparcobsd-tdep.c')
-rw-r--r-- | gdb/sparcobsd-tdep.c | 8 |
1 files changed, 2 insertions, 6 deletions
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); } |