-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm traying to debug a fork()-ing process, and according the GDB manual pages 
setting the 'follow-fork-mode' to 'child' will cause to switch to children. 
So this could be the case if I'm attached to some process in GDB but in case 
that I'm debugging the master application I'm always staying in parent 
process.

Here are the details :

bash-2.04$ uname -a
FreeBSD yo.rila.bg 4.6-STABLE FreeBSD 4.6-STABLE #1: Thu Oct 10 15:39:15 EEST 
2002     [EMAIL PROTECTED]:/usr/obj/usr/src/sys/YO  i386

$ gdb blah
(gdb) set follow-fork-mode child
Debugger response to a program call of fork or vfork is "child".
(gdb) n       / several times to reach the fork() call /

428             pid = fork();
(gdb)
429             if (pid != 0) {
(gdb) p pid
$2 = 12886
(gdb)


Any comments would be greatfuly appreciated.

- -- 
Dimitar Peikov
Programmer Analyst
Globalization Group
"We Build e-Business"  

RILA Solutions  
27 Building, Acad.G.Bonchev Str.  
1113 Sofia, Bulgaria  

phone: (+359 2) 9797320 
phone: (+359 2) 9797300 
fax:   (+359 2) 9733355  
http://www.rila.com 

GnuPG key       http://earth.rila.bg/~mitko/mitko.key.asc
GnuPG key       http://www.bgzone.com/~mitko/mitko.key.asc
Key fingerprint 97AF 6192 78E2 AC68 FD56  CCB0 68B9 DF7D B3C1 9ED7
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9yrQoaLnffbPBntcRAj5ZAKC9kTl7OlTnOZlluZtSxUJPIdRTBgCgpymJ
aq+isKvIF3GnGL9W/GikOwM=
=ojrs
-----END PGP SIGNATURE-----

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to