diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-02-15 19:06:33 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-02-15 19:06:33 +0000 |
commit | 56460a6114654c8abdc6fbc60df759623ff8ad7a (patch) | |
tree | a574f4e959d7fe00c5b1f211ecf303240b1a4e35 /gdb/doc | |
parent | 66e810cd098c57a4483f33cedc272486506eb485 (diff) | |
download | gdb-56460a6114654c8abdc6fbc60df759623ff8ad7a.zip gdb-56460a6114654c8abdc6fbc60df759623ff8ad7a.tar.gz gdb-56460a6114654c8abdc6fbc60df759623ff8ad7a.tar.bz2 |
2002-02-15 Daniel Jacobowitz <drow@mvista.com>
* gdb.texinfo: Document gdbserver ``--attach'' command.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 12 |
2 files changed, 15 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index f3a0fcf..24ecae5 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -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) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index ed1fbc4..e2bd248 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -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, |