This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]