2 ms·
You can attach to any of your processes, that's how debuggers work! Ever used gdb to attach to a running process and debug it on the fly? This is done with ptra
by mrb 15y ago
You can attach to any of your processes, that's how debuggers work! Ever used gdb to attach to a running process and debug it on the fly? This is done with ptrace() with the PT_ATTACH flag.
Now ptrace is known to be severly limited on Mac OS X, but there are ways around it:
http://uninformed.org/index.cgi?v=4&a=3&p=14 http://uninformed.org/index.cgi?v=4&a=3&p=14