This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
DFP build failure
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Cc: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- Date: Wed, 9 Jan 2008 11:49:17 -0500
- Subject: DFP build failure
void
decimal_from_floating (struct value *from, gdb_byte *to, int len)
{
char *buffer;
int ret;
ret = asprintf (&buffer, "%.30Lg", value_as_double (from));
...
value_as_double returns a DOUBLEST, not necessarily a long double as
specified by %Lg. And the system printf does not necessarily support
long double. Is there some other way to do this?
(It failed to build on mingw32.)
--
Daniel Jacobowitz
CodeSourcery