Re: Variable objects and STL containers

Vladimir Prus
2008-02-10T07:11:21Z

On Sunday 10 February 2008 07:27:44 Nick Roberts wrote:
> > > What will you do when the number of elements increases/decreases. Will
> > > Gdb create/delete variable objects for these children automatically?
> >
> > I anticipate that -var-update will:
> >
> > 1. Create new children, and report them.
> > 2. Report children that are now gone, possibly deleting them.
>
> That sounds sensible. Discussion on the gcc mailing list suggested that this
> should all be done in GDB, i.e., in C. I will explore that possibility.

Please note that I already have proof-of-concept Python integration,
together with code to use Python for -var-evaluate-expression, together
with not-yet-working patch to dynamically compute the list of varobj children.
It might be better to wait till I got the last bit done.

- Volodya