From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27271 invoked by alias); 31 Mar 2005 09:11:05 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 26475 invoked from network); 31 Mar 2005 09:10:40 -0000 Received: from unknown (HELO nobodaddy.cs.utexas.edu) (128.83.120.154) by sourceware.org with SMTP; 31 Mar 2005 09:10:40 -0000 Received: from osaku.cs.utexas.edu (nightelf@osaku.cs.utexas.edu [128.83.130.62]) by nobodaddy.cs.utexas.edu (8.13.4/8.13.4) with ESMTP id j2V9AZJe012147; Thu, 31 Mar 2005 03:10:36 -0600 (CST) Received: (from nightelf@localhost) by osaku.cs.utexas.edu (8.13.4/8.13.4/Submit) id j2V9AZdK019946; Thu, 31 Mar 2005 03:10:35 -0600 Date: Thu, 31 Mar 2005 09:11:00 -0000 From: Siddharth Choudhary Kode To: Russell Shaw cc: GDB Subject: Re: fork() In-Reply-To: <424B92B9.8020300@netspace.net.au> Message-ID: References: <424B92B9.8020300@netspace.net.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-SW-Source: 2005-03/txt/msg00312.txt.bz2 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. >