MI Interface - interpretation of value returned by -stack-list-locals (C++)
BarrRobot
robert@rwall.plus.com
Sat Mar 26 16:36:00 GMT 2011
The value returned by "-stack-list-locals 1" (inter alia) is of the form:
^done,locals=[{name="variable",value="a quoted string"}....]
i.e. a List of Tuples containing Results.
When "variable" of the first Result is a 'complex' type - typically an
instantiated class, the quoted string Value of the second appears to be
exactly the same (with allowance for escaped characters) as that produced by
the equivalent console interface (CLI) command and whilst parts of it
conform to the MI output specification, other parts - I am thinking of the
representation of arrays - do not. Is there an intention to present the
entire output of these commands in the defined MI output syntax, and if not,
what is the recommended way to handle this part of the output, i.e. is it
the expectation to present it 'as is' to the user, or is it safe to attempt
to parse out the component parts and their values with rules derived from
the CLI output?
[The thread "[mi] -stack-list-arguments --simple-values" by Vladimir Prus-3
Jun 30, 2009; 10:39am seems vaguely relevant].
--
View this message in context: http://old.nabble.com/MI-Interface---interpretation-of-value-returned-by--stack-list-locals-%28C%2B%2B%29-tp31246347p31246347.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
More information about the Gdb
mailing list