Debugging with GDB (September 2007)

Chapter 21: The gd b/mi Interface 321
Synopsis
-var-info-expression name
Returns what is represented by the variable object name:
lang=lang-spec,exp=expression
where lang-spec is {"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 spec ified for the object:
value=value
The -var-assign Co mm and
Synopsis
-var-assign name expression
Assigns the value of expression to the variable objec t specified by name. The object
must be editable’.
The -var-update Co mm and
Synopsis
-var-update {name | "*"}
Update the value of the variable object name by evaluating its expression after fetching
all the new values from memory or registers. A * causes all existing variable objects to be
updated.