diff mbox

[v3,11/18] Use software single step to step out of a fast tracepoint jump pad

Message ID 1467726030-13020-12-git-send-email-antoine.tremblay@ericsson.com
State New
Headers show

Commit Message

Antoine Tremblay July 5, 2016, 1:40 p.m. UTC
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 mbox

Patch

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.