From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115004 invoked by alias); 26 Sep 2016 02:25:32 -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 114921 invoked by uid 89); 26 Sep 2016 02:25:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*RU:209.85.220.68, Hx-spam-relays-external:209.85.220.68 X-HELO: mail-pa0-f68.google.com Received: from mail-pa0-f68.google.com (HELO mail-pa0-f68.google.com) (209.85.220.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 26 Sep 2016 02:25:24 +0000 Received: by mail-pa0-f68.google.com with SMTP id hm5so971529pac.1 for ; Sun, 25 Sep 2016 19:25:23 -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=6U0ZDCYz5dN4H/6kFUDrTS8ZArCA4nWEod4CDXV+Y/I=; b=cL4EKMaT4kL/9SLUBcYxcyul7/251ba8x5jBahszj6WXGL6GeWyNkM3e33ug68+u/Y 1Lca7meOTFWkpJz4iSpEWaPolvU36OwBr36ac2JE+QH5PVq0j/ctiX1/9fKSG1FqKmNM F1zugrwDG64TRKO5ruVfaymp8zSyQhpE5GU6N3QzF9d89rORJPzeHO+I8apWY8hh8kiT 0k7kHKHoAnPviZSjhd+QC5EDBmaeBlTYMSUzasZifY75VmDK77yXkyUI39rELP1s7Id4 CDqPYO9009JhK6StzRL26Kf8bKrYxSqtX6FwbydWQw78W7KjJ2kynHANj9yuLDhKqNaW USWw== X-Gm-Message-State: AA6/9RkhXKlwGq2oULpNEG3AkpnJe82lJwPxduQ2sLPcIt8587VHiIS7QTINtFaDBOXAbQ== X-Received: by 10.66.26.174 with SMTP id m14mr18054386pag.58.1474856722493; Sun, 25 Sep 2016 19:25:22 -0700 (PDT) Received: from localhost.localdomain (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id m82sm26179741pfk.64.2016.09.25.19.25.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 19:25:22 -0700 (PDT) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH 3/3] Enable range stepping if software single step is supported Date: Mon, 26 Sep 2016 02:25:00 -0000 Message-Id: <1474856716-5913-4-git-send-email-yao.qi@linaro.org> In-Reply-To: <1474856716-5913-1-git-send-email-yao.qi@linaro.org> References: <1474856716-5913-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00328.txt.bz2 If the target can do software single step, it can do range stepping. gdb/gdbserver: 2016-09-15 Yao Qi * linux-low.c (linux_supports_agent): Return true if can_software_single_step return true. --- gdb/gdbserver/linux-low.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 25dd60c..56178c5 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -6447,6 +6447,8 @@ linux_supports_agent (void) static int linux_supports_range_stepping (void) { + if (can_software_single_step ()) + return 1; if (*the_low_target.supports_range_stepping == NULL) return 0; -- 1.9.1