This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] convert a host address to a string
- From: Kai Tietz <Kai dot Tietz at onevision dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org, Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Date: Thu, 8 Jan 2009 14:03:47 +0100
- Subject: Re: [RFC] convert a host address to a string
Joel Brobecker <brobecker@adacore.com> wrote on 08.01.2009 13:54:30:
> > Well, the PRIxxx macros are ISO C99 inventions, so we can't assume
> > they're generally available. Guess that could be mitigated by
> > importing inttypes module from gnulib.
>
> It's mentioned in the C90 draft document that I have. Has it been
> removed from the final revision?
>
> In any case, it doesn't work on Windows, because their definition
> is screwed. How about some of my suggestions?
hmm, I tested it for the w64 compiler and I got no warnings about this at
all. Is gdb using some --std option? If so it could be that you are fooled
by the ISO C message that I isn't an ISO formatter. This check can be
turned off (as we did it for gcc 4.4) by the option
-Wno-pedantic-ms-format.
Kai
| (\_/) This is Bunny. Copy and paste Bunny
| (='.'=) into your signature to help him gain
| (")_(") world domination.