aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-02-15 19:08:05 +0000
committerDaniel Jacobowitz <drow@false.org>2002-02-15 19:08:05 +0000
commit8656e7d8b60638df4e5e449fe51647533f4a3ef6 (patch)
tree912e5c7b084d4534d5318bbb0eb580e3404629a4 /gdb/gdbserver
parent56460a6114654c8abdc6fbc60df759623ff8ad7a (diff)
downloadgdb-8656e7d8b60638df4e5e449fe51647533f4a3ef6.zip
gdb-8656e7d8b60638df4e5e449fe51647533f4a3ef6.tar.gz
gdb-8656e7d8b60638df4e5e449fe51647533f4a3ef6.tar.bz2
2002-02-15 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/gdbserver.1: Document --attach.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/gdbserver.113
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/gdbserver/gdbserver.1 b/gdb/gdbserver/gdbserver.1
index 24e78ea..846634b 100644
--- a/gdb/gdbserver/gdbserver.1
+++ b/gdb/gdbserver/gdbserver.1
@@ -10,6 +10,11 @@ gdbserver \- Remote Server for the GNU Debugger
.RB tty
.RB prog
.RB "[\|" args... "\|]"
+.PP
+.B gdbserver
+.RB tty
+.B --attach
+.RB PID
.ad b
.SH DESCRIPTION
GDBSERVER is a program that allows you to run GDB on a different machine
@@ -50,6 +55,14 @@ GDBs `target remote' command, which will be described shortly. Note that if
you chose a port number that conflicts with another service, gdbserver will
print an error message and exit.
+On some targets, gdbserver can also attach to running programs.
+This is accomplished via the --attach argument. The syntax is:
+
+ target> gdbserver COMM --attach PID
+
+PID is the process ID of a currently running process. It isn't
+necessary to point gdbserver at a binary for the running process.
+
Usage (host side):
You need an unstripped copy of the target program on your host system, since