Re:Show HN: liblorgnette – a dlsym for alien processes on OS X
by albertzeyer on Monday September 29, 2014 @02:54AM
(#8381920)
That's nice. I did something similar a while ago, together with mach_override, to hook into some functions, like ___NSAutoreleaseNoPool or ___THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC__, for debugging purpose.
Example: https://github.com/albertz/music-player/blob/master/app/mac_...
See FindSymbol and install_breakpoint_handlers.