From patchwork Tue Jul 5 13:40:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoine Tremblay X-Patchwork-Id: 13647 Received: (qmail 65377 invoked by alias); 5 Jul 2016 13:41:38 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 64874 invoked by uid 89); 5 Jul 2016 13:41:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, SPF_PASS autolearn=ham version=3.3.2 spammy=actions, 43087 X-HELO: usplmg21.ericsson.net Received: from usplmg21.ericsson.net (HELO usplmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 05 Jul 2016 13:41:30 +0000 Received: from EUSAAHC008.ericsson.se (Unknown_Domain [147.117.188.96]) by usplmg21.ericsson.net (Symantec Mail Security) with SMTP id 4A.66.03614.0B8BB775; Tue, 5 Jul 2016 15:40:01 +0200 (CEST) Received: from elxa4wqvvz1.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.96) with Microsoft SMTP Server (TLS) id 14.3.294.0; Tue, 5 Jul 2016 09:40:54 -0400 From: Antoine Tremblay To: CC: Antoine Tremblay Subject: [PATCH v3 11/18] Use software single step to step out of a fast tracepoint jump pad Date: Tue, 5 Jul 2016 09:40:23 -0400 Message-ID: <1467726030-13020-12-git-send-email-antoine.tremblay@ericsson.com> In-Reply-To: <1467726030-13020-1-git-send-email-antoine.tremblay@ericsson.com> References: <1467726030-13020-1-git-send-email-antoine.tremblay@ericsson.com> MIME-Version: 1.0 X-IsSubscribed: yes This patch enables software single step to be used to single step a thread out of the fast tracepoint jump pad. gdb/gdbserver/ChangeLog: * linux-low.c (linux_resume_one_lwp_throw): Use software single step if available to step out of the fast tracepoint jump pad. --- gdb/gdbserver/linux-low.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 14e15df..023d51f 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -4308,14 +4308,7 @@ linux_resume_one_lwp_throw (struct lwp_info *lwp, " single-stepping\n", lwpid_of (thread)); - if (can_hardware_single_step ()) - step = 1; - else - { - internal_error (__FILE__, __LINE__, - "moving out of jump pad single-stepping" - " not implemented on this target"); - } + step = single_step (lwp); } /* If we have while-stepping actions in this thread set it stepping.