From patchwork Thu Jun 9 12:56:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoine Tremblay X-Patchwork-Id: 12903 Received: (qmail 66484 invoked by alias); 9 Jun 2016 12:56:54 -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 66432 invoked by uid 89); 9 Jun 2016 12:56:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00, KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy= X-HELO: usplmg20.ericsson.net Received: from usplmg20.ericsson.net (HELO usplmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 09 Jun 2016 12:56:49 +0000 Received: from EUSAAHC001.ericsson.se (Unknown_Domain [147.117.188.75]) by usplmg20.ericsson.net (Symantec Mail Security) with SMTP id AD.D8.09012.23E59575; Thu, 9 Jun 2016 14:16:50 +0200 (CEST) Received: from elxa4wqvvz1.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.75) with Microsoft SMTP Server (TLS) id 14.3.294.0; Thu, 9 Jun 2016 08:56:32 -0400 From: Antoine Tremblay To: CC: Antoine Tremblay Subject: [PATCH v2 11/17] Use software single step to step out of a fast tracepoint jump pad Date: Thu, 9 Jun 2016 08:56:09 -0400 Message-ID: <1465476975-25062-12-git-send-email-antoine.tremblay@ericsson.com> In-Reply-To: <1465476975-25062-1-git-send-email-antoine.tremblay@ericsson.com> References: <1465476975-25062-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 7fcf36b..b16aec6 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -4234,14 +4234,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.