From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14077 invoked by alias); 21 Aug 2002 19:17:52 -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 14070 invoked from network); 21 Aug 2002 19:17:51 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 21 Aug 2002 19:17:51 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17hazL-0007B4-00; Wed, 21 Aug 2002 14:17:55 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17hazw-0001xb-00; Wed, 21 Aug 2002 15:18:32 -0400 Date: Wed, 21 Aug 2002 12:17:00 -0000 From: Daniel Jacobowitz To: Datoda Cc: gdb@sources.redhat.com Subject: Re: Debugging a process that does fork on Intel Linux Message-ID: <20020821191832.GA25356@nevyn.them.org> Mail-Followup-To: Datoda , gdb@sources.redhat.com References: <20020821191135.1896.qmail@web11201.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020821191135.1896.qmail@web11201.mail.yahoo.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00255.txt.bz2 On Wed, Aug 21, 2002 at 12:11:35PM -0700, Datoda wrote: > Hi, > > GDB has the concept of a catchpoint to catch a > fork syscall in the debuggee. Alas, it doesn't work > (yet) on intel linux. I put a little thought in it and > thinks that what's missing is a kernel support for > putting the parent and the child processes in a > stopped state when the fork syscall is complete. At > that point, the debugger can then attach to the child > process and bring it under control. > > I was wondering if such a kernel support exists? > If not, is there a plan for adding it? Or are there > other ideas for catching forks on Linux? TIA. I agree. I finished the kernel support last week, coincidentally. I'm trying to get comments on it on linux-kernel before I port it to 2.4 and post the GDB bits (which work, but need some cleaning). It may be a month or two. When I get around to doing the 2.4 port, I'll let the list know. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer