From 7e93ff4d870a9947b044d0dc5dc48e5d61dad3e0 Mon Sep 17 00:00:00 2001 From: Paulo Gomes Date: Tue, 8 Oct 2019 07:08:07 +0100 Subject: [PATCH] Add PtraceInterrupt func --- unix/syscall_linux.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/syscall_linux.go b/unix/syscall_linux.go index 1047d719..ebf3195b 100644 --- a/unix/syscall_linux.go +++ b/unix/syscall_linux.go @@ -1493,6 +1493,8 @@ func PtraceSyscall(pid int, signal int) (err error) { func PtraceSingleStep(pid int) (err error) { return ptrace(PTRACE_SINGLESTEP, pid, 0, 0) } +func PtraceInterrupt(pid int) (err error) { return ptrace(PTRACE_INTERRUPT, pid, 0, 0) } + func PtraceAttach(pid int) (err error) { return ptrace(PTRACE_ATTACH, pid, 0, 0) } func PtraceSeize(pid int) (err error) { return ptrace(PTRACE_SEIZE, pid, 0, 0) }