From 3778c3352f337221ab2ddf47827e5b2ac5805554 Mon Sep 17 00:00:00 2001 From: drow Date: Fri, 15 Feb 2002 19:08:04 +0000 Subject: [PATCH] 2002-02-15 Daniel Jacobowitz * gdbserver/gdbserver.1: Document --attach. --- gdb/ChangeLog | 4 ++++ gdb/gdbserver/gdbserver.1 | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b1eb77eb94..00729847d0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-02-15 Daniel Jacobowitz + + * gdbserver/gdbserver.1: Document --attach. + 2002-02-15 Richard Earnshaw * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint diff --git a/gdb/gdbserver/gdbserver.1 b/gdb/gdbserver/gdbserver.1 index 24e78ea1f0..846634b7ca 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 -- 2.11.0