summaryrefslogtreecommitdiff
path: root/gdb/s390-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-01-17 16:05:41 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-01-17 16:05:41 +0000
commit65862d7c8fb842b401e9029b89e4f2159a5544f6 (patch)
tree7b09bd61a4b1a6b324d1dd3d10bf9886826c1514 /gdb/s390-tdep.c
parente80f2365b76c5f06eba2d59ddc4c805b44ea7d8b (diff)
downloadgdb-65862d7c8fb842b401e9029b89e4f2159a5544f6.tar.gz
* s390-tdep.c (s390_gdbarch_init): Set default long double
type to 128-bit IEEE quad.
Diffstat (limited to 'gdb/s390-tdep.c')
-rw-r--r--gdb/s390-tdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index b448b2291b4..f25a371eb41 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. */