2002-02-15 Daniel Jacobowitz <drow@mvista.com>

* gdb.texinfo: Document gdbserver ``--attach'' command.
This commit is contained in:
Daniel Jacobowitz 2002-02-15 19:06:33 +00:00
parent 66e810cd09
commit 56460a6114
2 changed files with 15 additions and 1 deletions

View 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)

View 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,