From a13b55b0a7634e54a8654f4f555f0455e53a79d2 Mon Sep 17 00:00:00 2001 From: strange Date: Thu, 24 Dec 2009 14:17:07 -0800 Subject: [PATCH] Re-implemented PTrace::Portal::single_step(). However, I think I need to tag the different versions of aesalon and create a script to automate the process of determining the current version, rather than simply a "src/version_info" file like I currently have . . . --- src/interface/ptrace/Portal.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/interface/ptrace/Portal.cpp b/src/interface/ptrace/Portal.cpp index 6fa2b0c..504ab33 100644 --- a/src/interface/ptrace/Portal.cpp +++ b/src/interface/ptrace/Portal.cpp @@ -76,6 +76,8 @@ void Portal::continue_execution(int signal) { } void Portal::single_step() { + if(ptrace(PTRACE_SINGLESTEP, pid, NULL, NULL) == -1) + throw PTraceException(Misc::StreamAsString() << "Couldn't single-step program:" << strerror(errno)); } void Portal::wait_for_signal() { -- 2.11.4.GIT