aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-02-08 17:34:33 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-02-08 17:34:33 +0000
commit9c9532c936fcd6b3cd4d637d440fa2ae67b18249 (patch)
tree6421572251c782238b74f8d564120f0b5da7ec8d
parent4e8f7a8b2731c2e29031ec1b6796f5688935573d (diff)
downloadbinutils-9c9532c936fcd6b3cd4d637d440fa2ae67b18249.zip
binutils-9c9532c936fcd6b3cd4d637d440fa2ae67b18249.tar.gz
binutils-9c9532c936fcd6b3cd4d637d440fa2ae67b18249.tar.bz2
* gdbtypes.c (build_gdbtypes): Disable setting a specific float format
on builtin float types.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/gdbtypes.c14
2 files changed, 20 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0f82fe7..08dab9c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2002-02-08 Andrew Cagney <ac131313@redhat.com>
+ Corinna Vinschen <vinschen@redhat.com>
+
+ * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
+ on builtin float types.
+
2002-02-08 Daniel Jacobowitz <drow@mvista.com>
* utils.c: Include <curses.h> before "bfd.h".
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 2877f7a..a13847e 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -3153,17 +3153,31 @@ build_gdbtypes (void)
init_type (TYPE_CODE_FLT, TARGET_FLOAT_BIT / TARGET_CHAR_BIT,
0,
"float", (struct objfile *) NULL);
+/* vinschen@redhat.com 2002-02-08:
+ The below lines are disabled since they are doing the wrong
+ thing for non-multiarch targets. They are setting the correct
+ type of floats for the target but while on multiarch targets
+ this is done everytime the architecture changes, it's done on
+ non-multiarch targets only on startup, leaving the wrong values
+ in even if the architecture changes (eg. from big-endian to
+ little-endian). */
+#if 0
TYPE_FLOATFORMAT (builtin_type_float) = TARGET_FLOAT_FORMAT;
+#endif
builtin_type_double =
init_type (TYPE_CODE_FLT, TARGET_DOUBLE_BIT / TARGET_CHAR_BIT,
0,
"double", (struct objfile *) NULL);
+#if 0
TYPE_FLOATFORMAT (builtin_type_double) = TARGET_DOUBLE_FORMAT;
+#endif
builtin_type_long_double =
init_type (TYPE_CODE_FLT, TARGET_LONG_DOUBLE_BIT / TARGET_CHAR_BIT,
0,
"long double", (struct objfile *) NULL);
+#if 0
TYPE_FLOATFORMAT (builtin_type_long_double) = TARGET_LONG_DOUBLE_FORMAT;
+#endif
builtin_type_complex =
init_type (TYPE_CODE_COMPLEX, 2 * TARGET_FLOAT_BIT / TARGET_CHAR_BIT,
0,