Re: variable objects and registers

Vladimir Prus
2007-01-05T09:04:37Z

Nick Roberts wrote:

> > > > I've settled on -var-list. I don't think 'create' clarifies much,
> > > > and this is not user command,
> > >
> > > Except that it doesn't just list existing variable objects but
> > > "creates" new ones.
> >
> > I fact, I'm not sure what duplicated
> >
> > -var-list --locals
> >
> > should do. Create afresh, or just return already created?
>
> Thats a fair point. It should only create new variable objects if
> execution
> enters a new block. That makes -var-list a reasonable name. In the
> manual I should have said "...creates variable objects for the children if
> they do not already exist.".

Yeah. For -var-list, I've modified the manual to say that -var-list tries
to return previously-created varobjs.

For -var-list --registers I did not implement such reusing logic, because
I feel it's not very important performance-wise (yet?). For -var-list --locals,
we'll certainly have reuse of previously-created varobj, though.

- Volodya