Re: [PATCH] print format does not match argument type
Roland Schwingel <[email protected]> Tue, 10 Apr 2012 18:58:27 +0200
| Newsgroups | gmane.comp.debugging.insight |
|---|---|
| Message-ID | <[email protected]> |
Hi... Keith Seitz <[email protected]> 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...