This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: GDB C plugin system, and STL container viewer as an example
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 23 May 2008 18:20:36 +0400
- Subject: Re: GDB C plugin system, and STL container viewer as an example
- References: <1211535909.8253.16.camel@bsr-desktop>
Vincent Benony wrote:
> Hello,
>
> some days ago, I send here a (crap and buggy) patch that allows GDB to
> display STL containers. I know that this patch was too intrusive and
> dependent of the STL version.
>
> Today, I wrote another patch that allows me to load plugin into GDB
> that are called in particular situations, like displaying the content of
> a variable of a particular type, or creating varobjects in MI
> interpreter. It is used to format any kind of datas as I want it to be
> displayed.
>
> I submit a new version of my STL container viewer, but this time as a
> plugin. It handles STL container access as it was a classic C array, and
> answers queries like 'sizeof'... It also support MI interpreter, so that
> GDB could be used with frontend, still displaying data correctly. I
> tried it with Eclipse/CDT, KDevelop, KDBG, Nemiver and Insight/GDB. All
> works well !
I don't see how you report that fact that the number of children of a
varobj has changed. Without that, I'm not sure how useful MI display
of vectors is. Am I missing something?
- Volodya