This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



> -----Message d'origine-----
> De?: insight-owner@sourceware.org [mailto:insight-owner@sourceware.org] De
> la part de Keith Seitz
> Envoyé?: vendredi 13 avril 2012 17:17
> À?: Pierre Muller
> Cc?: 'Patrick Monnerat'; insight@sourceware.org; roland@onevision.com
> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]