RuntimeWrapping
This project demonstrates how to wrap a C function—specifically,
printf(3)
.
Seems like this could be useful for debugging in the field.
2 Comments RSS · Twitter
January 3, 2014 3:47 AM
Interesting, but dyld function interposing provide the same functionality without the need to link on a different framework.
And with dyld interposing, you don't have to bother with resolving the original symbol manually.
http://www.opensource.apple.com/source/dyld/dyld-97.1/include/mach-o/dyld-interposing.h