GDB/libiberty support for IBM long double
Luis Machado
luisgpm@linux.vnet.ibm.com
Wed Jan 2 18:12:00 GMT 2008
> However, could you test also replacing the two floatformat_from_double
> calls in convert_doublest_to_floatformat?
Sure. Follows the patch.
The results still show up correctly, casting doubles to long doubles and
long doubles to doubles.
===> Output <===
(gdb) set $ld=(long double)1.2
(gdb) p $ld
$8 = 1.1999999999999999555910790149937384
(gdb) p (double) $ld
$9 = 1.2
(gdb) set $ld=(double)1.2
(gdb) p $ld
$12 = 1.2
(gdb) p (long double) $ld
$13 = 1.1999999999999999555910790149937384
Regards,
--
Luis Machado
Software Engineer
IBM Linux Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_long_double.diff
Type: text/x-patch
Size: 1990 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080102/71e9d9b2/attachment.bin>
More information about the Gdb-patches
mailing list