summaryrefslogtreecommitdiff
path: root/gdb/doc/gdb.texinfo
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-07-06 13:21:19 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-07-06 13:21:19 +0000
commitcb8b30952c9f30b30efedbf38f4bf604d6b88af5 (patch)
treee2c91791c3843f17db7ec1217c7082e11a3c8e50 /gdb/doc/gdb.texinfo
parent437898d12bcb24ef81f8c04116f1dd1d79403c1d (diff)
downloadgdb-cb8b30952c9f30b30efedbf38f4bf604d6b88af5.tar.gz
* gdb.texinfo (GDB/MI Target Manipulation): Add
example of -target-attach.
Diffstat (limited to 'gdb/doc/gdb.texinfo')
-rw-r--r--gdb/doc/gdb.texinfo10
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index df1f1a26372..0c4f2edbbf9 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -21628,8 +21628,14 @@ Attach to a process @var{pid} or a file @var{file} outside of @value{GDBN}.
The corresponding @value{GDBN} command is @samp{attach}.
@subsubheading Example
-N.A.
-
+@smallexample
+(gdb)
+-target-attach 34
+=thread-created,id="1"
+*stopped,thread-id="1",frame={addr="0xb7f7e410",func="bar",args=[]}
+^done
+(gdb)
+@end smallexample
@subheading The @code{-target-compare-sections} Command
@findex -target-compare-sections