From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 845 invoked by alias); 4 Oct 2013 17:41:19 -0000 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 Received: (qmail 836 invoked by uid 89); 4 Oct 2013 17:41:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 04 Oct 2013 17:41:18 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r94HfFwq025915 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 4 Oct 2013 13:41:16 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r94HfEkg018076; Fri, 4 Oct 2013 13:41:14 -0400 Message-ID: <524EFDB9.2060505@redhat.com> Date: Fri, 04 Oct 2013 17:41:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Tom Tromey CC: Philippe Waroquiers , Sergio Durigan Junior , gdb-patches@sourceware.org Subject: Re: RFA [PATCH v4] Implement 'catch syscall' for gdbserver (was Re: RFA [PATCH v3] Implement 'catch syscall' for gdbserver) References: <1379796907.5980.20.camel@soleil> <1380467062.3567.52.camel@soleil> <524DBA28.3070706@redhat.com> <87ob76w2q1.fsf@fleche.redhat.com> In-Reply-To: <87ob76w2q1.fsf@fleche.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-10/txt/msg00147.txt.bz2 On 10/03/2013 08:53 PM, Tom Tromey wrote: >>>>>> "Pedro" == Pedro Alves writes: > >>> +QCatchSyscalls:1 [;SYSNO]... >>> +QCatchSyscalls:0 >>> + Enable ("QCatchSyscalls:1") or disable ("QCatchSyscalls:0") >>> + catching syscalls from the inferior process. > > Pedro> So, "catch syscall" is per-inferior/process on the GDB side, but > Pedro> this always sets the catchpoints on all processes. Was that > Pedro> intended? > > I wonder whether it is the right thing on the gdb side. > > Right now we have the rule that linespecs for breakpoints apply to all > inferiors; but this rule isn't followed for catchpoints. Yeah. > I tend to think it ought to be, for consistency and simplicity; followed > up by using it{etc}sets for filtering out uninteresting events. Yeah. That was part of the reason I just asked it is was intended, instead of requesting to make it per-process. > > > I don't want to derail this patch though. > > And arguably it is ok for gdb to present one thing to the user but more > useful for gdbserver to present a different view to gdb. -- Pedro Alves