2002-02-15 Daniel Jacobowitz <drow@mvista.com>
authorDaniel Jacobowitz <drow@false.org>
Fri, 15 Feb 2002 19:06:33 +0000 (19:06 +0000)
committerDaniel Jacobowitz <drow@false.org>
Fri, 15 Feb 2002 19:06:33 +0000 (19:06 +0000)
        * gdb.texinfo: Document gdbserver ``--attach'' command.

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

index f3a0fcf..24ecae5 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-15  Daniel Jacobowitz  <drow@mvista.com>
+
+       * gdb.texinfo: Document gdbserver ``--attach'' command.
+
 2002-02-07  Michael Snyder  <msnyder@redhat.com>
 
        * gdb.texinfo (overlays): Change @var(_ovly_debug_event)
index ed1fbc4..e2bd248 100644 (file)
@@ -9956,7 +9956,7 @@ strip the program if necessary to save space.  @value{GDBN} on the host
 system does all the symbol handling.
 
 To use the server, you must tell it how to communicate with @value{GDBN};
-the name of your program; and the arguments for your program.  The
+the name of your program; and the arguments for your program.  The usual
 syntax is:
 
 @smallexample
@@ -9993,6 +9993,16 @@ conflicts with another service, @code{gdbserver} prints an error message
 and exits.}  You must use the same port number with the host @value{GDBN}
 @code{target remote} command.
 
+On some targets, @code{gdbserver} can also attach to running programs.
+This is accomplished via the @code{--attach} argument.  The syntax is:
+
+@smallexample
+target> gdbserver @var{comm} --attach @var{pid}
+@end smallexample
+
+@var{pid} is the process ID of a currently running process.  It isn't necessary
+to point @code{gdbserver} at a binary for the running process.
+
 @item On the @value{GDBN} host machine,
 you need an unstripped copy of your program, since @value{GDBN} needs
 symbols and debugging information.  Start up @value{GDBN} as usual,