Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Really Fixing Arrays

> 
> 
> >
> > >
> > > An extension to -var-list-children may be in order.
> >
> >This is the best solution.
> 
> Indeed!
> 

8-)

Yes/No.  Agree on some part of the patches.  But not on the implementation.
It is better to use the "@" feature  and create the range, as Daniel J. was
pointing out.  It lets the entire management of children etc .. of the var-object
to GDB.  For example, if I want to create 2 ranges of 16:

char buffer[32];

-var-create - * buffer@16
...
-var-create - * (buffer + 15)@16

This let me create only 2 var-objects with 16 children.  The children
are managed by gdb; responsible for any updates etc .. and less consuming
then to create 32 different var-objects.

It is on my todo for the head.




Back to the top