user manual

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 359