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 | |
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')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/Makefile.in | 8 | ||||
-rw-r--r-- | gdb/ppcobsd-tdep.c | 5 |
3 files changed, 13 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 10909eb..605410c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2005-04-16 Mark Kettenis <kettenis@gnu.org> + * ppcobsd-tdep.c: Include "floatformat.h". + (ppcobsd_init_abi): Set long_double_bit and long_double_format. + * Makefile.in (ppcobsd-tdep.o): Update dependencies. + * ppcobsd-tdep.c: Fix typo in comment. (_initialize_ppcobsd_tdep): Register GDB_OSABI_OPENBSD_ELF for bfd_arch_rs6000 too. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 2493e8f..721431e 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2372,10 +2372,10 @@ ppcnbsd-tdep.o: ppcnbsd-tdep.c $(defs_h) $(gdbcore_h) $(regcache_h) \ $(gdb_assert_h) $(solib_svr4_h) ppcobsd-nat.o: ppcobsd-nat.c $(defs_h) $(inferior_h) $(regcache_h) \ $(ppc_tdep_h) $(ppcobsd_tdep_h) -ppcobsd-tdep.o: ppcobsd-tdep.c $(defs_h) $(arch_utils_h) $(osabi_h) \ - $(regcache_h) $(regset_h) $(trad_frame_h_ $(tramp_frame_h) \ - $(gdb_assert_h) $(gdb_string_h) $(ppc_tdep_h) $(ppcobsd_tdep_h) \ - $(solib_svr4_h) +ppcobsd-tdep.o: ppcobsd-tdep.c $(defs_h) $(arch_utils_h) $(floatformat_h) \ + $(osabi_h) $(regcache_h) $(regset_h) $(trad_frame_h) \ + $(tramp_frame_h) $(gdb_assert_h) $(gdb_string_h) $(ppc_tdep_h) \ + $(ppcobsd_tdep_h) $(solib_svr4_h) ppc-sysv-tdep.o: ppc-sysv-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \ $(regcache_h) $(value_h) $(gdb_string_h) $(gdb_assert_h) \ $(ppc_tdep_h) $(target_h) $(objfiles_h) $(infcall_h) 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); |