Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* DFP build failure
@ 2008-01-09 16:49 Daniel Jacobowitz
  2008-01-09 18:31 ` Thiago Jung Bauermann
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Jacobowitz @ 2008-01-09 16:49 UTC (permalink / raw)
  To: gdb-patches; +Cc: Thiago Jung Bauermann

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-01-09 19:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-09 16:49 DFP build failure Daniel Jacobowitz
2008-01-09 18:31 ` Thiago Jung Bauermann
2008-01-09 18:36   ` Daniel Jacobowitz
2008-01-09 19:11     ` Thiago Jung Bauermann
2008-01-09 19:15       ` Daniel Jacobowitz
2008-01-09 19:28         ` Thiago Jung Bauermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox