From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69200 invoked by alias); 20 May 2016 15:13:15 -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 69115 invoked by uid 89); 20 May 2016 15:13:14 -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,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1618, claim X-HELO: mail-pa0-f67.google.com Received: from mail-pa0-f67.google.com (HELO mail-pa0-f67.google.com) (209.85.220.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 20 May 2016 15:13:04 +0000 Received: by mail-pa0-f67.google.com with SMTP id yl2so11194743pac.1 for ; Fri, 20 May 2016 08:13:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=4W+raJKi5FcErmVzSUdr/Eb6wim11/0qbG/tanB7u0M=; b=TNBpecF+xkEPC0SR6af6OZgm0QnbyL8C2YVgZOwKddfd6Cs7RcdkqESxpSyfqnLVwA Jl/0eUs1H5Lz37mmlQWgjMVFZOCgXEkaKAsdzvLlfBIhp/9RNhBUPTotpxH4+3Eqaaer h0qO1n7LPkPSqpjQ3TsC+kGuG80pW1zB7RMNhpA98sEFSJ/0K3d0W3tG5D7EQLqEONmi Dcu1qgwkzWyaixwB0Saz94Ay+uFc9LWqjeoXeNXJCIPoXDCspZ2aL/pJObt2U9W+1pq8 FK71CR1ueXnS7367Ih/yJCcR0SHPkH+KqcGPbBtuY94EnROKoeWAgdrPQqs8s/WagpJq NSmw== X-Gm-Message-State: AOPr4FXxnK8Hs5QnLAx1NIWj8xQfwFAsH5y40jzSv1Pur3xyZ8ChKm77k96xH5mb7YBrKg== X-Received: by 10.66.117.201 with SMTP id kg9mr5620724pab.27.1463757182460; Fri, 20 May 2016 08:13:02 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (gcc113.osuosl.org. [140.211.9.71]) by smtp.gmail.com with ESMTPSA id p80sm27985272pfj.58.2016.05.20.08.13.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 May 2016 08:13:01 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 8/8] [GDBserver] Support vCont s and S actions with software single step Date: Fri, 20 May 2016 15:13:00 -0000 Message-Id: <1463757161-25850-9-git-send-email-yao.qi@linaro.org> In-Reply-To: <1463757161-25850-1-git-send-email-yao.qi@linaro.org> References: <1463757161-25850-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2016-05/txt/msg00360.txt.bz2 GDBserver with software single step should be able to claim supporting vCont s and S actions, so that GDB knows the remote target can do single step. It doesn't matter to GDB that the single step in the remote target is done via hardware or software. gdb/gdbserver: 2016-05-20 Yao Qi * server.c (handle_v_requests): Support s and S actions if target_supports_software_single_step return true. --- gdb/gdbserver/server.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 18517bc..6d6cb09 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -2958,12 +2958,15 @@ handle_v_requests (char *own_buf, int packet_len, int *new_packet_len) { strcpy (own_buf, "vCont;c;C;t"); - if (target_supports_hardware_single_step () || !vCont_supported) + if (target_supports_hardware_single_step () + || target_supports_software_single_step () + || !vCont_supported) { - /* If target supports hardware single step, add actions s - and S to the list of supported actions. On the other - hand, if GDB doesn't request the supported vCont actions - in qSupported packet, add s and S to the list too. */ + /* If target supports single step either by hardware or by + software, add actions s and S to the list of supported + actions. On the other hand, if GDB doesn't request the + supported vCont actions in qSupported packet, add s and + S to the list too. */ own_buf = own_buf + strlen (own_buf); strcpy (own_buf, ";s;S"); } -- 1.9.1