From 89fa5cc8794dff9ad8c36409c56dc51648adf771 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 12 Dec 2010 18:23:25 +0000 Subject: [PATCH] * mips64obsd-tdep.c (floatformats_mips64_quad): New define. (mips64obsd_init_abi): Set long_double_bit and long_double_format. --- gdb/ChangeLog | 5 +++++ gdb/mips64obsd-tdep.c | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 64763f39674..297ca539f80 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-12-12 Mark Kettenis + + * mips64obsd-tdep.c (floatformats_mips64_quad): New define. + (mips64obsd_init_abi): Set long_double_bit and long_double_format. + 2010-12-12 Mark Kettenis * sparc-tdep.c: Fix typo in comment. diff --git a/gdb/mips64obsd-tdep.c b/gdb/mips64obsd-tdep.c index fe66c7368e3..2ecb487cb4c 100644 --- a/gdb/mips64obsd-tdep.c +++ b/gdb/mips64obsd-tdep.c @@ -18,6 +18,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "gdbtypes.h" #include "osabi.h" #include "regcache.h" #include "regset.h" @@ -30,6 +31,10 @@ #include "mips-tdep.h" #include "solib-svr4.h" +/* The MIPS64 Floating-Point Quad-Precision format is similar to + big-endian IA-64 Quad-Precision format. */ +#define floatformats_mips64_quad floatformats_ia64_quad + #define MIPS64OBSD_NUM_REGS 73 /* Core file support. */ @@ -147,6 +152,9 @@ mips64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) tramp_frame_prepend_unwinder (gdbarch, &mips64obsd_sigframe); + set_gdbarch_long_double_bit (gdbarch, 128); + set_gdbarch_long_double_format (gdbarch, floatformats_mips64_quad); + /* OpenBSD/mips64 has SVR4-style shared libraries. */ set_solib_svr4_fetch_link_map_offsets (gdbarch, svr4_lp64_fetch_link_map_offsets); -- 2.30.2