From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14428 invoked by alias); 7 Dec 2012 15:44:53 -0000 Received: (qmail 14414 invoked by uid 22791); 7 Dec 2012 15:44:52 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,MISSING_HEADERS,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Dec 2012 15:44:42 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qB7Fid9n024520 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 7 Dec 2012 10:44:39 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qB7FicKV026287; Fri, 7 Dec 2012 10:44:38 -0500 Message-ID: <50C20EE6.2030103@redhat.com> Date: Fri, 07 Dec 2012 15:44:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 CC: Yao Qi , Marc Khouzam , "gdb-patches@sourceware.org" Subject: Re: [MI][patch v2] -break-list to specify "thread-group" References: <505DB611.70706@codesourcery.com> <50C20D19.1070704@redhat.com> In-Reply-To: <50C20D19.1070704@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2012-12/txt/msg00181.txt.bz2 On 12/07/2012 03:36 PM, Pedro Alves wrote: > On 09/22/2012 01:58 PM, Yao Qi wrote: >> On 09/21/2012 10:46 PM, Marc Khouzam wrote: >>> or (if the bp applies to multiple inferiors, which I didn't quite >>> out how to officially trigger, so I hacked the code to make sure >>> the output was done properly in that case): >>> >> >> I don't know ether. I can't think of a case that multiple inferiors share a single pspace. > > See the intro comment to program spaces in progspace.h. It gives some examples, such > as after a vfork (and before exit/exec), or some targets that work > that way, like Ericsson's DICOS. > Mandatory screenshot: >./gdb ./testsuite/gdb.base/foll-vfork (gdb) set detach-on-fork off (gdb) set follow-fork-mode child (gdb) start Temporary breakpoint 1 at 0x4006f4: file ../../../src/gdb/testsuite/gdb.base/foll-vfork.c, line 29. Starting program: /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.base/foll-vfork Temporary breakpoint 1, main () at ../../../src/gdb/testsuite/gdb.base/foll-vfork.c:29 29 pid = vfork (); (gdb) n [New process 9882] [Switching to process 9882] 30 if (pid == 0) { (gdb) info inferiors Num Description Executable * 2 process 9882 /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.base/foll-vfork is vfork child of inferior 1 1 process 9878 /home/pedro/gdb/mygit/build/gdb/testsuite/gdb.base/foll-vfork is vfork parent of inferior 2 (gdb) info breakpoints No breakpoints or watchpoints. (gdb) b main Breakpoint 2 at 0x4006f4: file ../../../src/gdb/testsuite/gdb.base/foll-vfork.c, line 29. (gdb) info breakpoints Num Type Disp Enb Address What 2 breakpoint keep y 0x00000000004006f4 in main at ../../../src/gdb/testsuite/gdb.base/foll-vfork.c:29 inf 2, 1 (gdb) -- Pedro Alves