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
@Jean-Daniel Thanks for the link!
Stay up-to-date by subscribing to the Comments RSS Feed for this post.
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