This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: [PATCH] print format does not match argument type
- From: Roland Schwingel <roland at onevision dot com>
- To: insight at sourceware dot org, Keith Seitz <keiths at redhat dot com>, Patrick dot Monnerat at datasphere dot ch
- Date: Tue, 10 Apr 2012 18:58:27 +0200
- Subject: Re: [PATCH] print format does not match argument type
Hi...
Keith Seitz <keiths@redhat.com> wrote on 10.04.2012 18:27:42:
> On 04/10/2012 09:08 AM, Patrick Monnerat wrote:
> > I think I've found the universal (well: almost!) coding:
> >
> > Use format "%llx" and cast arg to (unsigned long long): This is
> > C99 and supported by MSVC, at least since 2005. Not OK for C89 :-(
MS is not really caring about standards ... for native printf on windows
(as deliverd in msvcrt.dll) "%llx" is not supported.
> But for now, if your suggestion works (Roland will hopefully verify),
> then I say we go with that for the time being.
I am already testing but seeing a "funny" hang now when opening
the register window when using %llx.
Still evaluating. Have to see what xstrprintf() does exactly.
But as far as I can see at the moment it appears that vasprintf is
getting handled by libiberty in gdb on windows.
Roland
BTW: Insight is not built using MSVC on windows, but with gcc...