[python][patch] Pretty printers for anonymous types.
Tom Tromey
tromey@redhat.com
Sat Jan 17 00:50:00 GMT 2009
>>>>> "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
More information about the Archer
mailing list