This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 11/17] Use software single step to step out of a fast tracepoint jump pad
- From: Antoine Tremblay <antoine dot tremblay at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Antoine Tremblay <antoine dot tremblay at ericsson dot com>
- Date: Thu, 9 Jun 2016 08:56:09 -0400
- Subject: [PATCH v2 11/17] Use software single step to step out of a fast tracepoint jump pad
- Authentication-results: sourceware.org; auth=none
- References: <1465476975-25062-1-git-send-email-antoine dot tremblay at ericsson dot com>
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.
--
2.8.1