Returns the number of children of a variable object name:

numchild=n

The -var-list-children command

Synopsis

-var-list-children name

Returns a list of the children of the specified variable object:

numchild=n,children={{name=name, numchild=n,type=type},(repeats N times)}

The -var-info-type command

Synopsis

-var-info-type name

Returns the type of the specified variable name. The type is returned as a string in the same format as it is output by the GDB CLI:

type=typename

The -var-info-expression command

Synopsis

-var-info-expression name

Returns what is represented by the variable object name:

lang=lang-spec,exp=expression

where lang-specis {"C" "C++" "Java"}.

The -var-show-attributes command

Synopsis

-var-show-attributes name

List attributes of the specified variable object name:

status=attr [ ( ,attr )* ]

where attr is { { editable noneditable } TBD }.

The -var-evaluate-expression command

Synopsis

-var-evaluate-expression name

Evaluates the expression that is represented by the specified variable object and returns its value as a string in the current format specified for the object:

358 The GDB/MI Interface