Re: -stack-list-locals and children

André Pönitz
2009-06-29T07:42:24Z

On Sunday 28 June 2009 21:03:01 Niko Sams wrote:
> Hi,
>
> -stack-list-locals doesn't return an numchild element. How can the IDE
> know if a local
> is has children?
>
> If there are children, they are listed in value:
> ^done,locals=[{name="list",value="QList = {[0] = \"hello\"}"}]
>
> Is it a good idea to parse the value with an regular expression to
> find out if there are children?

It would be really nice if 'type' and 'numchild' information was directly
included in that "primary" output. The information is available on
the gdb side, so parsing it from the 'value' field does not really look
like a good solution in the long run.

Andre'