tracetree icon indicating copy to clipboard operation
tracetree copied to clipboard

Add macOS support

Open luser opened this issue 8 years ago • 0 comments

It would be great to have macOS support. ptrace doesn't have the same options there, but I finally found the necessary APIs that should enable this.

Specifically, calling dispatch_source_create with DISPATCH_SOURCE_TYPE_PROC will provide events on fork/exec/exit, which should be sufficient for this tool's needs. Apple has some sample code, and there's also the LLDB source to look at, where I originally stumbled upon this.

luser avatar Jun 22 '17 10:06 luser