aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2008-01-29 23:29:29 +0000
committerNick Roberts <nickrob@snap.net.nz>2008-01-29 23:29:29 +0000
commit1131083327c3eec753375610d5d5efec938b9ef3 (patch)
tree359dd5d91a137683e35b567b93e7645f9e43d1cd
parentf663676d1bcd9f7b01b7c3b6b3f11841f4051faa (diff)
downloadgdb-1131083327c3eec753375610d5d5efec938b9ef3.zip
gdb-1131083327c3eec753375610d5d5efec938b9ef3.tar.gz
gdb-1131083327c3eec753375610d5d5efec938b9ef3.tar.bz2
(Processes): Mention process command.
detach-on-follow -> detach-on-fork.
-rw-r--r--gdb/doc/gdb.texinfo15
1 files changed, 10 insertions, 5 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 02a7794..7566294 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -2550,12 +2550,12 @@ is held suspended.
@end table
-@kindex show detach-on-follow
-@item show detach-on-follow
-Show whether detach-on-follow mode is on/off.
+@kindex show detach-on-fork
+@item show detach-on-fork
+Show whether detach-on-fork mode is on/off.
@end table
-If you choose to set @var{detach-on-follow} mode off, then
+If you choose to set @samp{detach-on-fork} mode off, then
@value{GDBN} will retain control of all forked processes (including
nested forks). You can list the forked processes under the control of
@value{GDBN} by using the @w{@code{info forks}} command, and switch
@@ -2568,13 +2568,18 @@ Print a list of all forked processes under the control of @value{GDBN}.
The listing will include a fork id, a process id, and the current
position (program counter) of the process.
-
@kindex fork @var{fork-id}
@item fork @var{fork-id}
Make fork number @var{fork-id} the current process. The argument
@var{fork-id} is the internal fork number assigned by @value{GDBN},
as shown in the first field of the @samp{info forks} display.
+@kindex process @var{process-id}
+@item process @var{process-id}
+Make process number @var{process-id} the current process. The
+argument @var{process-id} must be one that is listed in the output of
+@samp{info forks}.
+
@end table
To quit debugging one of the forked processes, you can either detach