[gvd-users] (no subject)
Arnaud Charlet
gvd-users@lists.act-europe.fr
Thu, 22 May 2003 15:55:38 +0200
> "print ii._M_start[0]" gives me the first integer, not much better. And
> what about map, sets, multimaps, map to lists, map to maps to lists of
> sets and other data structures you sometimes can find use for, are they
> totally opaque in practice? Or have I missed something important?
The first thing to find out is whether gdb is able to display the actual
contents in some way (even if it is using a complex syntax): because if
gdb is not able to display the contents at all (e.g. insufficient
debug info), then GVD won't be able to do much.
A usual approach to display complex data structures is to define 'print'
functions in your executable, and call them from the debugger.
In GVD, you could then do e.g. graph display `call print_stl (foo)`
> GDB may be the best place to implement this. If so, how would the
> plug-ins interact with GVD?
I would indeed probably put more support for these in GDB itself, since it
would probably then come for free in GVD.
Arno