[PATCH] [Windows] fix format string for 64 bit var in gdbserver

Mike Frysinger vapier@gentoo.org
Sat Jul 17 09:40:00 GMT 2010


On Friday, July 16, 2010 16:10:23 Ozkan Sezer wrote:
> For windows targets, (x86_64-w64-mingw32, i686-w64-mingw32)
> gcc complains:
> 
> ../../../gdb-cvs/gdb/gdbserver/server.c: In function 'handle_query':
> ../../../gdb-cvs/gdb/gdbserver/server.c:1542: warning: unknown
> conversion type character 'l' in format
> ../../../gdb-cvs/gdb/gdbserver/server.c:1542: warning: too many
> arguments for format
> ../../../gdb-cvs/gdb/gdbserver/server.c:1566: warning: unknown
> conversion type character 'l' in format
> ../../../gdb-cvs/gdb/gdbserver/server.c:1566: warning: too many
> arguments for format
> 
> This is due to the fact that MS printf doesn't support %lld, it uses
> its own %I64d which gcc already knows about. The attached patch
> changes that. OK for apply?

ugh, no.  why not use a sane define like PRIx64 from inttypes.h ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20100717/c4fb0c30/attachment.sig>


More information about the Gdb-patches mailing list