|
|
@@ -1125,6 +1125,10 @@ func PtracePokeData(pid int, addr uintptr, data []byte) (count int, err error) {
|
|
|
return ptracePoke(PTRACE_POKEDATA, PTRACE_PEEKDATA, pid, addr, data)
|
|
|
}
|
|
|
|
|
|
+func PtracePokeUser(pid int, addr uintptr, data []byte) (count int, err error) {
|
|
|
+ return ptracePoke(PTRACE_POKEUSR, PTRACE_PEEKUSR, pid, addr, data)
|
|
|
+}
|
|
|
+
|
|
|
func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
|
|
|
return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
|
|
}
|