diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-01-17 16:05:41 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-01-17 16:05:41 +0000 |
commit | 1de90795b9a9af9cb9be8359e997a9304967fc35 (patch) | |
tree | b8f9ab8031e6884c39ae7eefa160aa67cdc16879 | |
parent | c7dd36a1722af6c8d128431588d4e5cf44f69b73 (diff) | |
download | fsf-binutils-gdb-1de90795b9a9af9cb9be8359e997a9304967fc35.zip fsf-binutils-gdb-1de90795b9a9af9cb9be8359e997a9304967fc35.tar.gz fsf-binutils-gdb-1de90795b9a9af9cb9be8359e997a9304967fc35.tar.bz2 |
* s390-tdep.c (s390_gdbarch_init): Set default long double
type to 128-bit IEEE quad.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/s390-tdep.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ac27b70..7c1f0a2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-01-17 Ulrich Weigand <uweigand@de.ibm.com> + + * s390-tdep.c (s390_gdbarch_init): Set default long double + type to 128-bit IEEE quad. + 2008-01-17 Joel Brobecker <brobecker@adacore.com> * hpux-thread.c (hpux_thread_resume): Delete commented-out code. diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c index b448b22..f25a371 100644 --- a/gdb/s390-tdep.c +++ b/gdb/s390-tdep.c @@ -2328,6 +2328,12 @@ s390_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_believe_pcc_promotion (gdbarch, 0); set_gdbarch_char_signed (gdbarch, 0); + /* S/390 GNU/Linux uses either 64-bit or 128-bit long doubles. + We can safely let them default to 128-bit, since the debug info + will give the size of type actually used in each case. */ + set_gdbarch_long_double_bit (gdbarch, 128); + set_gdbarch_long_double_format (gdbarch, floatformats_ia64_quad); + /* Amount PC must be decremented by after a breakpoint. This is often the number of bytes returned by gdbarch_breakpoint_from_pc but not always. */ |