summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2002-11-11 17:09:50 +0000
committerJeff Johnston <jjohnstn@redhat.com>2002-11-11 17:09:50 +0000
commit0ee6f92b96be23b76dcad6d18d6a291167142d72 (patch)
treeb1187df0a3e5c68f685ea046a0cfdb4b13a67ea1 /gdb
parent9c64cb799695e801990d0cb94a4316d7c87c9a2d (diff)
downloadgdb-0ee6f92b96be23b76dcad6d18d6a291167142d72.tar.gz
2002-11-11 Jeff Johnston <jjohnstn@redhat.com>
* gdbmi.texinfo (-var-assign): Add comments about interaction with -var-update and add an example. Part of fix for gdb/702.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/mi/ChangeLog5
-rw-r--r--gdb/mi/gdbmi.texinfo16
2 files changed, 20 insertions, 1 deletions
diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog
index d84c87bc450..3a6af234fa1 100644
--- a/gdb/mi/ChangeLog
+++ b/gdb/mi/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-11 Jeff Johnston <jjohnstn@redhat.com>
+
+ * gdbmi.texinfo (-var-assign): Add comments about interaction
+ with -var-update and add an example. Part of fix for gdb/702.
+
2002-11-08 Jeff Johnston <jjohnstn@redhat.com>
* mi-main.c (mi_command_loop): Initialize raw_stdout and gdb_stdout
diff --git a/gdb/mi/gdbmi.texinfo b/gdb/mi/gdbmi.texinfo
index 164b1e823b7..d64328c1734 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