This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: fork()
- From: Siddharth Choudhary Kode <nightelf at cs dot utexas dot edu>
- To: Russell Shaw <rjshaw at netspace dot net dot au>
- Cc: GDB <gdb at sources dot redhat dot com>
- Date: Thu, 31 Mar 2005 03:10:35 -0600 (CST)
- Subject: Re: fork()
- References: <424B92B9.8020300@netspace.net.au>
Check the info doc, sec. 4.10. This is only supported on GNU/Linux
2.5.60+ and HP-UX 11.x+. If your platform doesn't support it, the best
option is to insert a sleep() statement at the beginning of your child
code and then have a new gdb session attach to the child process before
the sleep expires.
On Thu, 31 Mar 2005, Russell Shaw wrote:
Hi,
I was debugging a program with gdb-6.3 and did: set follow-fork-mode child
but fork() still returns the PID meaning that it is still following the
parent.