summaryrefslogtreecommitdiff
path: root/gdb/ppcobsd-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-04-16 21:37:02 +0000
committerMark Kettenis <kettenis@gnu.org>2005-04-16 21:37:02 +0000
commitc7d355b94c5ff956a9f80fcf1570ad5b4de31df1 (patch)
tree5025276460148e2650f9d79cf4cd608edfd6a201 /gdb/ppcobsd-tdep.c
parent0ebee7b859d937c52e06b6f6cbb31bf13c577a55 (diff)
downloadgdb-c7d355b94c5ff956a9f80fcf1570ad5b4de31df1.tar.gz
* ppcobsd-tdep.c: Include "floatformat.h".
(ppcobsd_init_abi): Set long_double_bit and long_double_format. * Makefile.in (ppcobsd-tdep.o): Update dependencies.
Diffstat (limited to 'gdb/ppcobsd-tdep.c')
-rw-r--r--gdb/ppcobsd-tdep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ppcobsd-tdep.c b/gdb/ppcobsd-tdep.c
index 94cea38b788..67ac1a74a5e 100644
--- a/gdb/ppcobsd-tdep.c
+++ b/gdb/ppcobsd-tdep.c
@@ -21,6 +21,7 @@
#include "defs.h"
#include "arch-utils.h"
+#include "floatformat.h"
#include "osabi.h"
#include "regcache.h"
#include "regset.h"
@@ -169,6 +170,10 @@ static const struct tramp_frame ppcobsd_sigtramp =
static void
ppcobsd_init_abi (struct gdbarch_info info, struct gdbarch *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 uses SVR4-style shared libraries. */
set_solib_svr4_fetch_link_map_offsets
(gdbarch, svr4_ilp32_fetch_link_map_offsets);