This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
MI: -var-list-children doc error
- From: Chris Genly <chgenly at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 17 Jun 2009 10:07:29 -0700
- Subject: MI: -var-list-children doc error
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.