From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12077 invoked by alias); 31 Mar 2005 09:31: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 12046 invoked from network); 31 Mar 2005 09:31:00 -0000 Received: from unknown (HELO mail.netspace.net.au) (203.10.110.71) by sourceware.org with SMTP; 31 Mar 2005 09:31:00 -0000 Received: from [192.168.1.11] (220-253-3-149.VIC.netspace.net.au [220.253.3.149]) by mail.netspace.net.au (Postfix) with ESMTP id 4AF184340E for ; Thu, 31 Mar 2005 19:30:58 +1000 (EST) Message-ID: <424BC412.5070802@netspace.net.au> Date: Thu, 31 Mar 2005 09:31:00 -0000 From: Russell Shaw User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1 MIME-Version: 1.0 Cc: GDB Subject: Re: fork() References: <424B92B9.8020300@netspace.net.au> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00313.txt.bz2 Siddharth Choudhary Kode wrote: > 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. Hi, I'm using 2.6.10 on debian sid. > 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. >> >