From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18092 invoked by alias); 31 Mar 2005 09:41:38 -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 17879 invoked from network); 31 Mar 2005 09:41:09 -0000 Received: from unknown (HELO calvin.codito.co.in) (220.225.32.98) by sourceware.org with SMTP; 31 Mar 2005 09:41:09 -0000 Received: from [192.168.100.52] (arnor.codito.co.in [192.168.100.52]) by calvin.codito.co.in (8.12.10/8.12.10) with ESMTP id j2V9ex89030448; Thu, 31 Mar 2005 15:11:01 +0530 Message-ID: <424BC58A.3040603@codito.com> Date: Thu, 31 Mar 2005 09:41:00 -0000 From: Ramana Radhakrishnan User-Agent: Mozilla Thunderbird 0.8 (X11/20040926) MIME-Version: 1.0 To: Russell Shaw CC: GDB Subject: Re: fork() References: <424B92B9.8020300@netspace.net.au> <424BC412.5070802@netspace.net.au> In-Reply-To: <424BC412.5070802@netspace.net.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00314.txt.bz2 Russell Shaw wrote: > 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. Can you show the context in which you are getting this ? >>> >> -- Ramana Radhakrishnan GNU Tools codito ergo sum (www.codito.com)