From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17967 invoked by alias); 9 Jul 2009 00:02:01 -0000 Received: (qmail 17765 invoked by uid 22791); 9 Jul 2009 00:02:01 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Jul 2009 00:01:54 +0000 Received: from mailhost2.vmware.com (mailhost2.vmware.com [10.16.67.167]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id E30A459004; Wed, 8 Jul 2009 17:01:50 -0700 (PDT) Received: from [10.20.94.141] (msnyder-server.eng.vmware.com [10.20.94.141]) by mailhost2.vmware.com (Postfix) with ESMTP id C3D5D8E95F; Wed, 8 Jul 2009 17:01:50 -0700 (PDT) Message-ID: <4A553291.8040904@vmware.com> Date: Thu, 09 Jul 2009 00:02:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: Michael Eager CC: "gdb@sourceware.org" Subject: Re: Debugging gdb under gdb References: <4A55313B.8000006@eagercon.com> In-Reply-To: <4A55313B.8000006@eagercon.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-07/txt/msg00061.txt.bz2 Michael Eager wrote: > Hi -- > > When I try to run a test gdb under gdb, the host gdb hangs. > > The hang occurs when the test gdb is executing pex_unix_exec_child(). > As soon as the test gdb executes fork(), the host gdb hangs. > I've tried all of the permutations of follow-fork-mode > and detach-on-fork, with no luck. The host neither follows > the parent nor the child processes. > > The host gdb is "GNU gdb Fedora (6.8-32.fc10)". > > Suggestions? Are you stepping or continuing when this occurs? There is a point, somewhere around where gdb is forking the child, where stepping always hangs for me. I don't remember exactly where. I work around it by setting a breakpoint somewhere just after, and continuing. It's been a while since I've done this... but see if that helps. Michael