MI: -var-list-children doc error

Chris Genly
2009-06-17T17:14:56Z

The documentation for -var-list-children does not match what Cygwin
GDB produces, or Eclipse DSF expects.

The documentation for -var-list-children is here:

http://sourceware.org/gdb/current/onlinedocs/gdb_26.html#SEC449

Which shows:

-var-list-children n
^done,numchild=n,children=[{name=name,
numchild=n,type=type},(repeats N times)]

Here is example GDB/MI output:

21-var-list-children var1
21^done,numchild="1",children=[child={name="var1.public",exp="public",numchild="2"}]

Notice the "child=" is present in actual implementations, but is
missing from the documentation. Also the Cygwin GDB output shows an
"exp" result in the child definition. This is not documented either.