This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] Support alternate 'long double' size.
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Pierre Muller <muller at ics dot u-strasbg dot fr>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 18 Feb 2003 14:51:36 -0500
- Subject: Re: [RFC] Support alternate 'long double' size.
- References: <5.0.2.1.2.20030217174903.02c193e8@ics.u-strasbg.fr>
Index: doublest.c
===================================================================
RCS file: /cvs/src/src/gdb/doublest.c,v
retrieving revision 1.11
diff -u -p -r1.11 doublest.c
--- doublest.c 4 Dec 2002 05:40:40 -0000 1.11
+++ doublest.c 17 Feb 2003 16:07:19 -0000
@@ -633,6 +633,8 @@ floatformat_from_length (int len)
return TARGET_DOUBLE_FORMAT;
else if (len * TARGET_CHAR_BIT == TARGET_LONG_DOUBLE_BIT)
return TARGET_LONG_DOUBLE_FORMAT;
+ else if (len * TARGET_CHAR_BIT == TARGET_LONG_DOUBLE_BIT_ALTERNATE)
+ return TARGET_LONG_DOUBLE_FORMAT;
return NULL;
}
Would simply adding:
else if (TARGET_LONG_DOUBLE_FORMAT != NULL
&& len * TARGET_CHAR_BIT == TARGET_LONG_DOUBLE_FORMAT->totalsize)
..
to the end of that if() chain work? (and the other alternatives as well
of course).
Otherwize, yes, I can't see any other way of handling this problem :-(
Andrew