This is the mail archive of the archer@sourceware.org mailing list for the Archer 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: [python][patch] Pretty printers for anonymous types.


>>>>> "Paul" == Paul Pluzhnikov <ppluzhnikov@google.com> writes:

Paul> AFAICT, currently there is no way to establish a pretty printer for
Paul> 'Foo', because get_type() in python/python.c answers with
Paul> "struct { ... }" for either 'f' or 'b'.

Paul> Ok to commit?

This needs a patch to the documentation -- the search process is
documented.  This is ok with that addition.

One issue I think you will hit is that gdb is fairly aggressive about
calling check_typedef.  For instance, value_cast strips typedefs from
the target type; so I suspect that "p (Foo *) x" will not do the right
thing even with your patch.  This is just something we'll have to
(eventually) fix.

thanks,
Tom


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