This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: [python][patch] Pretty printers for anonymous types.
- From: Tom Tromey <tromey at redhat dot com>
- To: ppluzhnikov at google dot com (Paul Pluzhnikov)
- Cc: archer at sourceware dot org, Jeffrey Yasskin <jyasskin at google dot com>
- Date: Fri, 16 Jan 2009 17:49:55 -0700
- Subject: Re: [python][patch] Pretty printers for anonymous types.
- References: <20090117001720.123B93A6B56@localhost>
- Reply-to: Tom Tromey <tromey at redhat dot com>
>>>>> "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