aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/gdbmi.texinfo
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mi/gdbmi.texinfo')
-rw-r--r--gdb/mi/gdbmi.texinfo16
1 files changed, 15 insertions, 1 deletions
diff --git a/gdb/mi/gdbmi.texinfo b/gdb/mi/gdbmi.texinfo
index 164b1e8..d64328c 100644
--- a/gdb/mi/gdbmi.texinfo
+++ b/gdb/mi/gdbmi.texinfo
@@ -3799,7 +3799,21 @@ before the value of a child variable can be evaluated.
@end example
Assigns the value of @var{expression} to the variable object specified
-by @var{name}. The object must be @samp{editable}.
+by @var{name}. The object must be @samp{editable}. If the variable's
+value is altered by the assign, the variable will show up in any
+subsequent @code{-var-update} list.
+
+@subsubheading Example
+
+@example
+(@value{GDBP})
+-var-assign var1 3
+^done,value="3"
+(@value{GDBP})
+-var-update *
+^done,changelist=[@{name="var1",in_scope="true",type_changed="false"@}]
+(@value{GDBP})
+@end example
@subheading The @code{-var-update} Command
@findex -var-update