From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 26 Jun 2001 09:06:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 26 Jun 2001 09:06:45 -0400 Received: from wks122.navicsys.com ([207.180.73.122]:19204 "EHLO noop.") by vger.kernel.org with ESMTP id ; Tue, 26 Jun 2001 09:06:36 -0400 To: Julien Laganier Cc: Linux Mailing List Subject: Re: Fork vs GDB In-Reply-To: <3B375A77.C59A516D@Sun.COM> From: Nick Papadonis Organization: None X-Face: 01-z%.O)i7LB;Cnxv)caA5j@>3jYX:)*O6:@F>it.>stK5,i^jk0epU\$*cQ9 !)Oqf[@SOzys\7Ym}:2KWpM=8OCC` Content-Type: text/plain; charset=US-ASCII Date: 26 Jun 2001 09:03:23 -0400 In-Reply-To: <3B375A77.C59A516D@Sun.COM> (Julien Laganier's message of "Mon, 25 Jun 2001 17:36:23 +0200") Message-ID: User-Agent: Gnus/5.090003 (Oort Gnus v0.03) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Julien Laganier writes: > Greetings, > > Does anyone knows how to debug a program which fork. It seems that gdb > doesn't allow us to debug the child processes without calling 'sleep' in > the child, and attach it to gdb (Except on HP-UX, but I choose to use > Linux ;-)) ? > > Tnx. Julien, I had this question awhile back. Your solution with sleep is the only option, unless you wish to add support for another method. - N