Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)

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.
GDB/MI variable objects 275