RE: [PATCH] print format does not match argument type
"Pierre Muller" <[email protected]> Fri, 13 Apr 2012 17:24:52 +0200
| Newsgroups | gmane.comp.debugging.insight |
|---|---|
| Message-ID | <[email protected]> |
> -----Message d'origine----- > De : [email protected] [mailto:[email protected]] De > la part de Keith Seitz > Envoyé : vendredi 13 avril 2012 17:17 > À : Pierre Muller > Cc : 'Patrick Monnerat'; [email protected]; [email protected] > Objet : Re: [PATCH] print format does not match argument type > > 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.] Patch committed in http://sourceware.org/ml/gdb-cvs/2012-04/msg00086.html Thanks Pierre