aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2010-12-12 18:23:25 +0000
committerMark Kettenis <kettenis@gnu.org>2010-12-12 18:23:25 +0000
commit89fa5cc8794dff9ad8c36409c56dc51648adf771 (patch)
treeb79725e5bd4c6d2bc6932ce63a1a088dd9231927 /gdb
parent7a58cce85cfaf3aa370caee571783c810b2052f7 (diff)
downloadgdb-89fa5cc8794dff9ad8c36409c56dc51648adf771.zip
gdb-89fa5cc8794dff9ad8c36409c56dc51648adf771.tar.gz
gdb-89fa5cc8794dff9ad8c36409c56dc51648adf771.tar.bz2
* mips64obsd-tdep.c (floatformats_mips64_quad): New define.
(mips64obsd_init_abi): Set long_double_bit and long_double_format.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/mips64obsd-tdep.c8
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 64763f3..297ca53 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-12 Mark Kettenis <kettenis@xian.sibelius.xs4all.nl>
+
+ * mips64obsd-tdep.c (floatformats_mips64_quad): New define.
+ (mips64obsd_init_abi): Set long_double_bit and long_double_format.
+
2010-12-12 Mark Kettenis <kettenis@gnu.org>
* sparc-tdep.c: Fix typo in comment.
diff --git a/gdb/mips64obsd-tdep.c b/gdb/mips64obsd-tdep.c
index fe66c73..2ecb487 100644
--- a/gdb/mips64obsd-tdep.c
+++ b/gdb/mips64obsd-tdep.c
@@ -18,6 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#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);