List Info

Thread: Re: Variable objects and STL containers




Re: Variable objects and STL containers
user name
2008-02-07 18:52:45
 > We discussed using Python scripting for that; in fact,
I have a patch locally
 > that will make 
 > 
 >         -var-evaluate-expression V 
 > 
 > for a vector print something like:
 > 
 >         [1,2,3]
 > 
 > I'm working on making those element the children of
the variable object,
 > but it's not done yet.

What will you do when the number of elements
increases/decreases.  Will
Gdb create/delete variable objects for these children
automatically?  Or
will the frontend be prompted?

-- 
Nick                                           http://www.inet.net.n
z/~nickrob

Re: Variable objects and STL containers
country flaguser name
Russian Federation
2008-02-08 00:46:28
On Friday 08 February 2008 03:52:45 you wrote:
>  > We discussed using Python scripting for that; in
fact, I have a patch locally
>  > that will make 
>  > 
>  >         -var-evaluate-expression V 
>  > 
>  > for a vector print something like:
>  > 
>  >         [1,2,3]
>  > 
>  > I'm working on making those element the children
of the variable object,
>  > but it's not done yet.
> 
> 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.

- Volodya

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )