From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32443 invoked by alias); 19 Oct 2015 08:48:13 -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 32434 invoked by uid 89); 19 Oct 2015 08:48:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_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 (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 19 Oct 2015 08:48:12 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 093539158B for ; Mon, 19 Oct 2015 08:48:11 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t9J8m9nn008307; Mon, 19 Oct 2015 04:48:09 -0400 Message-ID: <5624AE48.2060509@redhat.com> Date: Mon, 19 Oct 2015 08:48:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Josh Stone , gdb-patches@sourceware.org CC: sergiodj@redhat.com Subject: Re: [PATCH v3] gdb: Improve syscall entry/return tracking on Linux References: <5619260C.9060801@redhat.com> <1445044608-23715-1-git-send-email-jistone@redhat.com> In-Reply-To: <1445044608-23715-1-git-send-email-jistone@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-10/txt/msg00321.txt.bz2 On 10/17/2015 02:16 AM, Josh Stone wrote: > gdb/ChangeLog: > > 2015-10-16 Josh Stone > > * linux-nat.c (linux_handle_syscall_trap): Always update entry/ > return state, even when not actively catching syscalls at all. > (linux_handle_extended_wait): Mark syscall_state like an entry. > (wait_lwp): Set syscall_state ignored for other traps. > (linux_nat_filter_event): Likewise. > > gdb/testsuite/ChangeLog: > > 2015-10-16 Josh Stone > > * gdb.base/catch-syscall.c: Include . > (unknown_syscall): New variable. > (main): Trigger a vfork and an unknown syscall. > * gdb.base/catch-syscall.exp (vfork_syscalls): New variable. > (unknown_syscall_number): Likewise. > (check_call_to_syscall): Accept an optional syscall pattern. > (check_return_from_syscall): Likewise. > (check_continue): Likewise. > (test_catch_syscall_without_args): Check for vfork and ENOSYS. > (test_catch_syscall_skipping_return): New test toggling off 'catch > syscall' to step over the syscall return, then toggling back on. > (test_catch_syscall_mid_vfork): New test turning on 'catch syscall' > during a PTRACE_EVENT_VFORK stop, in the middle of a vfork syscall. > (do_syscall_tests): Call test_catch_syscall_without_args and > test_catch_syscall_mid_vfork. > (test_catch_syscall_without_args_noxml): Check for vfork and ENOSYS. > (fill_all_syscalls_numbers): Initialize unknown_syscall_number. OK. Please push. Thanks, Pedro Alves