aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2002-06-17 17:30:57 +0000
committerKeith Seitz <keiths@redhat.com>2002-06-17 17:30:57 +0000
commit32c95e2031199f29a5226eb44996bf50434d418d (patch)
tree4071387641ad0499fff30790d548ef3a1d2967cd /gdb/mi
parent96f31fc79d019f138883011138bde1b86d5ade4e (diff)
downloadgdb-32c95e2031199f29a5226eb44996bf50434d418d.zip
gdb-32c95e2031199f29a5226eb44996bf50434d418d.tar.gz
gdb-32c95e2031199f29a5226eb44996bf50434d418d.tar.bz2
* gdbmi.texinfo: Update command examples with real MI behavior.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/ChangeLog4
-rw-r--r--gdb/mi/gdbmi.texinfo12
2 files changed, 11 insertions, 5 deletions
diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog
index a750d8c..1d1ea81 100644
--- a/gdb/mi/ChangeLog
+++ b/gdb/mi/ChangeLog
@@ -1,3 +1,7 @@
+2002-06-17 Keith Seitz <keiths@redhat.com>
+
+ * gdbmi.texinfo: Update command examples with real MI behavior.
+
2002-05-20 Keith Seitz <keiths@redhat.com>
* mi-main.c (captured_mi_execute_command): Add uiout parameter.
diff --git a/gdb/mi/gdbmi.texinfo b/gdb/mi/gdbmi.texinfo
index f924214..a71b702 100644
--- a/gdb/mi/gdbmi.texinfo
+++ b/gdb/mi/gdbmi.texinfo
@@ -8,7 +8,7 @@
@c @ifinfo
@c This file documents GDB/MI, a Machine Interface to GDB.
-@c Copyright 2000, 2001 Free Software Foundation, Inc.
+@c Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
@c Contributed by Cygnus Solutions.
@c Permission is granted to copy, distribute and/or modify this document
@@ -36,7 +36,7 @@
@c @page
@c @vskip 0pt plus 1filll
-@c Copyright @copyright{} 2000, 2001 Free Software Foundation, Inc.
+@c Copyright @copyright{} 2000, 2001, 2002 Free Software Foundation, Inc.
@c Permission is granted to copy, distribute and/or modify this document
@c under the terms of the GNU Free Documentation License, Version 1.1 or
@@ -355,7 +355,7 @@ following line is passed to @sc{gdb/mi} as input, while @samp{<-} means
the output received from @sc{gdb/mi}.
@subsubheading Target Stop
-
+@c Ummm... There is no "-stop" command. This assumes async, no?
Here's an example of stopping the inferior process:
@example
@@ -378,7 +378,9 @@ Here's an example of a simple CLI command being passed through
@example
-> print 1+2
-<- ~3\n
+<- &"print 1+2\n"
+<- ~"$1 = 3\n"
+<- ^done
<- (@value{GDBP})
@end example
@@ -396,7 +398,7 @@ Here's what happens if you pass a non-existent command:
@example
-> -rubbish
-<- error,"Rubbish not found"
+<- ^error,msg="Undefined MI command: rubbish"
<- (@value{GDBP})
@end example