From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 60234 invoked by alias); 30 Jun 2016 14:09:55 -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 60073 invoked by uid 89); 30 Jun 2016 14:09:54 -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=2016-06-02, 20160602, Hx-languages-length:1606, claim X-HELO: mail-pf0-f195.google.com Received: from mail-pf0-f195.google.com (HELO mail-pf0-f195.google.com) (209.85.192.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Thu, 30 Jun 2016 14:09:46 +0000 Received: by mail-pf0-f195.google.com with SMTP id t190so7501354pfb.2 for ; Thu, 30 Jun 2016 07:09:45 -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=u9/ko6UWO38YvVjv8HWhe1276RDy/ZdgdCZn22jg+ds=; b=Wzh+DPr0/O8qhc37FspNdpRHkbw3osAq9wm1+PJBz9Sv4aquH8oDm7s86ZQXE9iy+Y sPJXZ14LGGBApv13bMKsmCWbJ5QvneAO7AOS22GkE32oVWI8Obtr9FTPUsu+GYjbsBLs DHtCAHtDnA1C2b9AYu4AKlQ6CudLl+NZqy+ylvvgrikEguE4XFeOSn6dd2hG7r5Bwv8I 0OMXzcd4IZr0zBbbzvxfv88f7VurEHef6bDXMlELsi85Le4i/EwgVvjLZfitWnh9FTdN ubzxtiGNt0JzbX1onvmnLK/DQnJtA64XF25zBGqFL/jjx7mdfShROn9z+Cedc8hbM3Fg byQg== X-Gm-Message-State: ALyK8tLIArnYtNPDn+L1XrrMKI5GlOkxiqro6jV+ndbnbY8R17UOD496s+ZHdHUmAuvv1g== X-Received: by 10.98.4.193 with SMTP id 184mr21651939pfe.98.1467295783748; Thu, 30 Jun 2016 07:09:43 -0700 (PDT) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id s3sm6263184pfb.87.2016.06.30.07.09.42 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Jun 2016 07:09:43 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 9/9] Support vCont s and S actions with software single step Date: Thu, 30 Jun 2016 14:09:00 -0000 Message-Id: <1467295765-3457-10-git-send-email-yao.qi@linaro.org> In-Reply-To: <1467295765-3457-1-git-send-email-yao.qi@linaro.org> References: <1467295765-3457-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00547.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-06-02 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