* gdb.texinfo (GDB/MI Target Manipulation): Add
authorVladimir Prus <vladimir@codesourcery.com>
Sun, 6 Jul 2008 13:21:19 +0000 (13:21 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Sun, 6 Jul 2008 13:21:19 +0000 (13:21 +0000)
example of -target-attach.

gdb/doc/ChangeLog
gdb/doc/gdb.texinfo

index d2d5349ae69668901d86e5fc0755aa54b8503bc2..915908b730b96e438c91e6dc96f3d8d74a54234b 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-06  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * gdb.texinfo (GDB/MI Target Manipulation): Add
+       example of -target-attach.
+
 2008-06-10  Vladimir Prus  <vladimir@codesourcery.com>
 
        * observer.texi (target_resumed): New observer.
index df1f1a26372db88176933164b084de1ee560bed7..0c4f2edbbf9209b34c9dbc33b6112db5bd9c42ad 100644 (file)
@@ -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