Fix typo in ada_language_arch_info
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 6 Sep 2016 15:22:51 +0000 (17:22 +0200)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 6 Sep 2016 15:22:51 +0000 (17:22 +0200)
This fixes a bug introduced by a wrong replacement here:
https://sourceware.org/ml/gdb-patches/2007-06/msg00196.html

The Ada "long_long_float" type is supposed to correspond to the
platform ABI long double type, not double.

gdb/ChangeLog:

* ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
instead of gdbarch_double_bit for "long_long_float".

Signed-off-by: Ulrich Weigand <ulrich.weigand@de.ibm.com>
gdb/ChangeLog
gdb/ada-lang.c

index 9d46948c5c666ff7f3af94e3b189959ab95cd162..fc64c9ddef22fb9f2a5db871ba5b04a869b4c09b 100644 (file)
@@ -1,3 +1,8 @@
+2016-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * ada-lang.c (ada_language_arch_info): Use gdbarch_long_double_bit
+       instead of gdbarch_double_bit for "long_long_float".
+
 2016-09-05  Pedro Alves  <palves@redhat.com>
 
        * NEWS: Mention that a C++ compiler is now required.
index 05bfd7b34c74bea5645752ef2eab1f7041c9b08d..b8cc982a434413774efa1f682fd7ac22b5ecccd1 100644 (file)
@@ -14012,7 +14012,7 @@ ada_language_arch_info (struct gdbarch *gdbarch,
     = arch_integer_type (gdbarch, gdbarch_long_long_bit (gdbarch),
                         0, "long_long_integer");
   lai->primitive_type_vector [ada_primitive_type_long_double]
-    = arch_float_type (gdbarch, gdbarch_double_bit (gdbarch),
+    = arch_float_type (gdbarch, gdbarch_long_double_bit (gdbarch),
                       "long_long_float", NULL);
   lai->primitive_type_vector [ada_primitive_type_natural]
     = arch_integer_type (gdbarch, gdbarch_int_bit (gdbarch),