From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2226 invoked by alias); 21 Apr 2002 05:21:37 -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 2215 invoked from network); 21 Apr 2002 05:21:36 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 21 Apr 2002 05:21:36 -0000 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 16z9nW-0004iB-00; Sun, 21 Apr 2002 01:22:02 -0400 Date: Sat, 20 Apr 2002 22:21:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Frank Schaefer , gdb@sources.redhat.com Subject: Re: Problems debugging forked processes Message-ID: <20020421012202.A17852@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Frank Schaefer , gdb@sources.redhat.com References: <20020419121038.A24030@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-SW-Source: 2002-04/txt/msg00346.txt.bz2 On Sun, Apr 21, 2002 at 09:12:33AM +0300, Eli Zaretskii wrote: > > On Fri, 19 Apr 2002, Daniel Jacobowitz wrote: > > > > (gdb) show follow-fork-mode > > > Debugger response to a program call of fork or vfork is "parent". > > > (gdb) set follow-fork-mode child > > > (gdb) show follow-fork-mode > > > Debugger response to a program call of fork or vfork is "child". > > > > This variable doesn't actually affect GNU/Linux. Yeah, I know, I know. > > We need a documentation patch to address this; please file a PR > > (http://sources.redhat.com/gdb/, Bugs). > > If someone tells me what should be documented, I'll do that. Now is the > time, since v5.2 is in pretest. > > Is the issue that follow-fork-mode is only supported on a small number of > systems? If so, what are those systems, and is it enough to have their > list in the manual? I believe the only platform to implement this is actually HP/UX: drow@nevyn:/opt/src/gdb/src/gdb% grep -r CHILD_HAS_FORKED . ./inftarg.c:#if !defined(CHILD_HAS_FORKED) ./config/pa/nm-hppah.h:#define CHILD_HAS_FORKED ./infttrace.c:#if defined(CHILD_HAS_FORKED) ./ChangeLog-1998: (child_has_forked): Now enclosed by a CHILD_HAS_FORKED ifdef There's a nice new debugging interface in the works for GNU/Linux that will let us support this some day. But for now, HP/UX only. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer