Despite the fact that the ptrace(2) man page on FreeBSD says PT_DETACH does not allow an alternate place to continue execution, it really does. As a result, we *must* pass (caddr_t)1 for the addr argument to indicate execution should resume where it left off, just as you would with PT_CONTINUE.
Despite the fact that the ptrace(2) man page on FreeBSD says PT_DETACH
does not allow an alternate place to continue execution, it really does.
As a result, we *must* pass (caddr_t)1 for the addr argument to indicate
execution should resume where it left off, just as you would with
PT_CONTINUE.

kbyanc/dyntrace,kbyanc/dyntrace