From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26651 invoked by alias); 5 Oct 2013 09:15:28 -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 26637 invoked by uid 89); 5 Oct 2013 09:15:27 -0000 Authentication-Results: sourceware.org; auth=none 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; Sat, 05 Oct 2013 09:15:26 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r959FNZX021462 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 5 Oct 2013 05:15:23 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r959FLXQ032732; Sat, 5 Oct 2013 05:15:22 -0400 Message-ID: <524FD8A9.2010006@redhat.com> Date: Sat, 05 Oct 2013 09:15: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: Philippe Waroquiers CC: 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> <1380837750.2217.104.camel@soleil> <524EFB00.90105@redhat.com> In-Reply-To: <524EFB00.90105@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-10/txt/msg00160.txt.bz2 Hi, I don't have time right now for a more elaborate answer, but ... On 10/04/2013 06:29 PM, Pedro Alves wrote: > > Thinking only in terms of multi-process/thread, I'm inclined to ignore the > "per-process" thing now, and just leave it as gdbserver making catch > syscall apply to all processes. I just realized that we really can't do that. The syscall numbers sent across the wire are the target-specific numbers. Since gdbserver might well be debugging processes of different gdbarch's simultaneously (see the multi-arch support patches from a while ago, the tdesc support in gdbserver, etc.), we can't assume the same syscall array makes sense for all processes under gdbserver's control. -- Pedro Alves