This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
GDB 6.4, Linux, Multiple process
- From: Carlos Eduardo Rodrigues de Almeida <eduardo dot almeida at gmail dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 25 Jan 2006 16:04:56 +0000
- Subject: GDB 6.4, Linux, Multiple process
Hi all,
I'm using gentoo linux. I emerged gdb 6.4 and reading the
documentation I noticed that now it is possible to debug program with
multiple process. I tried it out and I can only use the set/show
follow-fork-mode commands. The set detach-on-fork, info forks, fork
does not work.
(gdb) info forks
Undefined info command: "forks". Try "help info".
(gdb) fork
Undefined command: "fork". Try "help".
(gdb) set detach-on-fork
No symbol "detach" in current context.
And I think there is a bug in the documentation... there is the
explanation about the set detach-on-fork and the show it says
detach-on-follow:
set detach-on-fork mode
Tells gdb whether to detach one of the processes after a fork, or
retain debugger
control over them both.
on The child process (or parent process, depending on the value of
follow-fork-mode) will be detached and allowed to run independently.
This is the default.
off Both processes will be held under the control of gdb. One process
(child or parent, depending on the value of follow-fork-mode) is
debugged as usual, while the other is held suspended.
show detach-on-follow
Show whether detach-on-follow mode is on/off.
Are the multiple process commands implemented? What do I have to do
for them to work?
I tried the gdb-6.4.tar.bz2 from the ftp and I still can't use these commands
Thank you,
Eduardo