bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: check for C99-compliant snprintf - call for volunteers


From: Daniel Jacobowitz
Subject: Re: check for C99-compliant snprintf - call for volunteers
Date: Sun, 4 Mar 2007 22:53:21 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

On Sun, Mar 04, 2007 at 01:23:58PM -0800, Brian Dessent wrote:
> Er, but the entire reason for the existance of this module was so that
> gdb can use %a to display floating point variables in hex, without
> having to worry about whether the platform's snprintf natively supports
> it or not.

No, that's why I started working on merging snprintfv, but this stuff
that Bruno's done since then is different.  It's useful independently,
but I doubt it will be directly useful for GDB.

What GDB wants to print in hex floating isn't a host double but a
target double; if we cast to host double or long doube, then in some
circumstances we lose precision.  I suspect GDB will end up using
gnulib to parse format strings, and then handling a few of the format
specifiers on its own.  There are lots of valid approaches to that.

Anyway, I'm stalled for a while on snprintfv, so don't expect too
much unless someone else wants to pick up the project of making GDB
happier - which I'd be glad to assist with as time permits :-)

-- 
Daniel Jacobowitz
CodeSourcery




reply via email to

[Prev in Thread] Current Thread [Next in Thread]