Debugging with GDB Manual HP WDB v6.3 (5900-2180, August 2012)
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-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 specified for the object:
value=value
The -var-assign command
Synopsis
-var-assign name expression
Assigns the value of expression to the variable object specified by name. The object must be
'editable'.
The -var-update command
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.
21.14 GDB/MI variable objects 285