Does anyone know a "ptrace" like utility for Mac OS X?
"ptrace()" is the process tracing stuff that debuggers can use. Other platforms have "truss" (Solaris) and "strace" (Linux) to show system calls. Mac OS X has "ktrace". It's a two-stage deal: ktrace your program and you'll get a ktrace.out file. Then run kdump to see the results. You can see stuff in real-time by doing a "kdump -l". The ktrace and kdump man pages have details.