diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-04-16 21:37:02 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-04-16 21:37:02 +0000 |
commit | 5a49dfd0ac779c6d2148f7fd4dd3b357f841877a (patch) | |
tree | f624d2efbef60000a4cec112dfd8f7bfa113c845 /gdb/ppcobsd-tdep.c | |
parent | 5d6210f04389cc54d1937e309ea48e979a352e54 (diff) | |
download | gdb-5a49dfd0ac779c6d2148f7fd4dd3b357f841877a.zip gdb-5a49dfd0ac779c6d2148f7fd4dd3b357f841877a.tar.gz gdb-5a49dfd0ac779c6d2148f7fd4dd3b357f841877a.tar.bz2 |
* 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.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ppcobsd-tdep.c b/gdb/ppcobsd-tdep.c index 94cea38..67ac1a7 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); |