Re: [PATCH] print format does not match argument type

Keith Seitz <[email protected]> Fri, 13 Apr 2012 08:17:27 -0700
Newsgroups gmane.comp.debugging.insight
Message-ID <[email protected]>
On 04/13/2012 07:52 AM, Pierre Muller wrote:
>    The gdb/utils.c function called host_address_to_string
> was created to allow printing of host pointer
> without need to bother with %llX or typecasts...
>
> It does add a '0x' at the start of the
> generated pchar, but I don't think that this is a big problem.
>
> This second field (ar[1]) is probably added to avoid confusion between
> type with same name...
>
> Should we use this patch?

Yes, thank you for pointing that out. I just *knew* there had to be a 
way to do this "safely." [As safe as it can be to pass host pointers 
into the interpreter at least.]

Keith