From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109569 invoked by alias); 1 Sep 2015 14:40:38 -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 109560 invoked by uid 89); 1 Sep 2015 14:40:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout23.012.net.il Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 01 Sep 2015 14:40:37 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NU000K0060BEI00@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Tue, 01 Sep 2015 17:40:34 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NU000KRF63LAK70@a-mtaout23.012.net.il>; Tue, 01 Sep 2015 17:40:34 +0300 (IDT) Date: Tue, 01 Sep 2015 14:40:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH 2/2] Support single step by arch or target In-reply-to: <1441096915-23615-3-git-send-email-yao.qi@linaro.org> To: Yao Qi Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83io7ucidu.fsf@gnu.org> References: <1441096915-23615-1-git-send-email-yao.qi@linaro.org> <1441096915-23615-3-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00013.txt.bz2 > From: Yao Qi > Date: Tue, 1 Sep 2015 09:41:55 +0100 > > gdb: > > 2015-09-01 Yao Qi > > * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New > function. > (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step. > * arm-linux-tdep.c (arm_linux_software_single_step): Return 0 > if target_can_do_single_step returns 1. > * remote.c (struct vCont_action_support) : New fields. > (PACKET_vContSupported): New enum. > (remote_protocol_features): New element for vContSupported. > (remote_query_supported): Append "vContSupported+". > (remote_vcont_probe): Remove support_s and support_S, use > rs->supports_vCont.s and rs->supports_vCont.S instead. Disable > vCont packet if c and C actions are not supported. > (remote_can_do_single_step): New function. > (init_remote_ops): Install it to to_can_do_single_step. > (_initialize_remote): Call add_packet_config_cmd. > * target.h (struct target_ops) : New field. > (target_can_do_single_step): New macro. > * target-delegates.c: Re-generated. > > gdb/gdbserver: > > 2015-09-01 Yao Qi > > * server.c (vCont_supported): New global variable. > (handle_query): Set vCont_supported to 1 if "vContSupported+" > matches. Append ";vContSupported+" to own_buf. > (handle_v_requests): Append ";s;S" to own_buf if target supports > hardware single step or vCont_supported is false. > (capture_main): Set vCont_supported to zero. > > gdb/doc: > > 2015-09-01 Yao Qi > > * gdb.texinfo (General Query Packets): Add vContSupported to > tables of 'gdbfeatures' and 'stub features' supported in the > qSupported packet, as well as to the list containing stub > feature details. OK for the documentation part. Thanks.