aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2003-04-16 20:41:46 +0000
committerKevin Buettner <kevinb@redhat.com>2003-04-16 20:41:46 +0000
commitab9fe00ef06a15d4166eba425fab99fa93b219a5 (patch)
tree0a86195e76ece86dda56546665aa4660937d3799 /gdb/rs6000-tdep.c
parentc8c4d8dcfb13da53404d9c599d74f96405682734 (diff)
downloadgdb-ab9fe00ef06a15d4166eba425fab99fa93b219a5.zip
gdb-ab9fe00ef06a15d4166eba425fab99fa93b219a5.tar.gz
gdb-ab9fe00ef06a15d4166eba425fab99fa93b219a5.tar.bz2
* rs6000-tdep.c (rs6000_gdbarch_init): For the SVR4 ABI, set
the size of ``long double'' to 16, instead of 8.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index b70917e..9f55368 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -2895,7 +2895,10 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
set_gdbarch_long_long_bit (gdbarch, 8 * TARGET_CHAR_BIT);
set_gdbarch_float_bit (gdbarch, 4 * TARGET_CHAR_BIT);
set_gdbarch_double_bit (gdbarch, 8 * TARGET_CHAR_BIT);
- set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT);
+ if (sysv_abi)
+ set_gdbarch_long_double_bit (gdbarch, 16 * TARGET_CHAR_BIT);
+ else
+ set_gdbarch_long_double_bit (gdbarch, 8 * TARGET_CHAR_BIT);
set_gdbarch_char_signed (gdbarch, 0);
set_gdbarch_fix_call_dummy (gdbarch, rs6000_fix_call_dummy);