This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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: GDB C plugin system, and STL container viewer as an example


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



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