From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5835 invoked by alias); 10 Sep 2013 18:07:23 -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 5813 invoked by uid 89); 10 Sep 2013 18:07:21 -0000 Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 10 Sep 2013 18:07:21 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.2 X-HELO: rock.gnat.com Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id CE431116553; Tue, 10 Sep 2013 14:07:30 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wrEgRsxrp7UW; Tue, 10 Sep 2013 14:07:30 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id A54A011652B; Tue, 10 Sep 2013 14:07:30 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 2A4FDE04B3; Tue, 10 Sep 2013 11:07:18 -0700 (PDT) Date: Tue, 10 Sep 2013 18:07:00 -0000 From: Joel Brobecker To: Philippe Waroquiers Cc: gdb-patches@sourceware.org Subject: added to 7.7-branch wiki: Re: RFA [PATCH] Implement 'catch syscall' for gdbserver Message-ID: <20130910180718.GA6575@adacore.com> References: <1377876388.3041.3.camel@soleil> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1377876388.3041.3.camel@soleil> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2013-09/txt/msg00344.txt.bz2 For the record, since this patch has been submitted in a reasonable timeframe prior to the planned 7.7 branch creation, I've added it to our 7.7 release wiki page. It does not mean that we must get this patch in the release (for instance if considered too risky), but hopefully this will place this patch a little higher on the reviewing queue... Thank you :) > Here are the changes logs: > ChangeLog > 2013-xx-yy Philippe Waroquiers > > * NEWS: Document new QcatchSyscalls packet and its use > in x86/amd64 linux gdbserver and Valgrind gdbserver. > * remote.c (PACKET_QCatchSyscalls): New. > (remote_protocol_features): Add Qcatchsyscalls. > (remote_set_syscall_catchpoint): New function. > (remote_parse_stop_reply): New stop reasons syscall_entry > and syscall_return. > (init_remote_ops): Registers remote_set_syscall_catchpoint > and the config commands for [PACKET_QCatchSyscalls. > * common/linux-ptrace.c (linux_check_ptrace_features): > Detect PTRACE_O_TRACESYSGOOD for gdbserver. > (ptrace_supports_feature): Initializes ptrace features if needed. > > doc/ChangeLog > 2013-xx-yy Philippe Waroquiers > > * gdb.texinfo (General Query Packets): Document new QcatchSyscalls > packet. > (Stop Reply Packets): Document new stop reasons syscall_entry and > syscall_return. > (Async Records): fixed syscall-return item name. > > gdbserver/ChangeLog > 2013-xx-yy Philippe Waroquiers > > * target.h (struct target_ops): Add supports_catch_syscall operation. > * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo > operation. > * linux-low.c (linux_wait_1): Enables, detects and handle > SYSCALL_SIGTRAP. > (gdb_catched_syscall): New function. > (get_syscall_trapinfo): New function. > (linux_supports_catch_syscall): New function. > (struct target_ops linux_target_ops): Set linux_supports_catch_syscall. > * linux-x86-low.c (x86_get_syscall_trapinfo): New function. > (struct linux_target_ops the_low_target): Set x86_get_syscall_trapinfo. > * remote-utils.c (prepare_resume_reply): Handle status kinds > TARGET_WAITKIND_SYSCALL_ENTRY and TARGET_WAITKIND_SYSCALL_RETURN. > * server.h: Declare catch_syscalls_p, catched_syscalls_size and > catched_syscalls. > * server.c: Define catch_syscalls_p, catched_syscalls_size and > catched_syscalls. > (handle_general_set): Handle QCatchSyscalls packet. > (handle_query): Reports if low target supports QCatchSyscalls. > * win32-low.c (struct target_ops win32_target_op): Sets NULL > for supports_catch_syscall. > > testsuite/ChangeLog > 2013-xx-yy Philippe Waroquiers > > * gdb.base/catch-syscall.exp: Enables test for x86 and amd64 > gdbserver. -- Joel