This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Python API - pretty printing complex types
- From: Tom Tromey <tromey at redhat dot com>
- To: Joachim Protze <joachim dot protze at wh2 dot tu-dresden dot de>
- Cc: Andrew Oakley <andrew at ado dot is-a-geek dot net>, gdb at sourceware dot org
- Date: Thu, 10 Mar 2011 14:08:11 -0700
- Subject: Re: Python API - pretty printing complex types
- References: <20110309004619.7256b052@ado-gentoo> <4D77352D.3010004@wh2.tu-dresden.de>
>>>>> "Joachim" == Joachim Protze <joachim.protze@wh2.tu-dresden.de> writes:
Joachim> My first approach makes use of the undocumented (online-doc)
Joachim> array-method of gdb.Type, that i put in a handy function -- the
Joachim> straight forward way.
I looked, and this is documented in CVS.
We try pretty hard to document the whole Python API. If you run across
something missing, or if you find something unclear or under-documented,
please report it in bugzilla.
Joachim> For the second approach you have to put a typedef into your source --
Joachim> the more flexible way for complex situations.
Nice trick!
I do think we should do something not needing tricks in the source.
Tom