Daniel Jacobowitz wrote:
> 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 double, then in some
> circumstances we lose precision.

For this, in general, you could probably use gnulib's vasnprintf.c source
with a lot of #ifdefs. And especially the code that does the actual
conversion for 'a' and 'A' is unusable if 'double' is not the same as the
target 'double'.

Using snprintfv seems better for you - there you can redefine each directive's
execution independently.

> Anyway, I'm stalled for a while on snprintfv

Why? Paolo presented a nice plan [1]. It only needs to be executed.

Bruno


[1] http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00426.html



Reply via email to