From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2623 invoked by alias); 25 Jul 2009 15:29:03 -0000 Received: (qmail 2615 invoked by uid 22791); 25 Jul 2009 15:29:03 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 25 Jul 2009 15:28:55 +0000 Received: (qmail 11154 invoked from network); 25 Jul 2009 15:28:53 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 25 Jul 2009 15:28:53 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: Multi-exec patches (Was: [rfc] Infrastructure to disable breakpoints during inferior startup) Date: Sat, 25 Jul 2009 19:31:00 -0000 User-Agent: KMail/1.9.10 Cc: Tom Tromey , "Ulrich Weigand" , Jan Kratochvil References: <200907231631.n6NGV2xR018887@d12av02.megacenter.de.ibm.com> <200907251612.50134.pedro@codesourcery.com> In-Reply-To: <200907251612.50134.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200907251628.51203.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-07/txt/msg00624.txt.bz2 On Saturday 25 July 2009 16:12:49, Pedro Alves wrote: > > =A0 =A0 (gdb) set schedule-multiple on > > =A0 =A0 (gdb) set detach-on-fork off > > =A0 =A0 (gdb) run > > =A0 =A0 Starting program: /usr/bin/make=20 > > =A0 =A0 (no debugging symbols found) > > =A0 =A0 (no debugging symbols found) > > =A0 =A0 (no debugging symbols found) > > =A0 =A0 [New process 3931] > > =A0 =A0 process 3931 is executing new program: /bin/true > > =A0 =A0 (no debugging symbols found) > > =A0 =A0 (no debugging symbols found) > > =A0 =A0 (no debugging symbols found) > >=20 > > =A0 =A0 Program exited normally. > >=20 > > ... which is a little odd, since no build was done. > > And, what's with process 3931 executing /bin/true? I noticed I didn't exactly respond to this one. > > Am I not debugging the 'make' process? Yes you are, but, 'make' vforked (notice the [New process...] message, and then execed /bin/true. You only see the "Attaching after fork..." message with "info verbose on" (linux-nat.c:linux_child_follow_fork). If you do "info inferiors" or "info sspaces", you should see you're debugging both /usr/bin/make and /bin/true simultaneously at this point. > Ah, but you're debugging in all-stop mode. =A0What this means > is that a program exit is a reason to stop everything and report > to the user. =A0This was /bin/true exiting. =A0Check "info inferiors", > and you should still see other inferiors there, waiting for you > to tell them to continue execution. --=20 Pedro Alves