4 ms·
Here you go: https://www.gnu.org/software/libc/manual/html_node/Hooks-for-Malloc.html https://www.gnu.org/software/libc/manual/html_node/Hooks-for... It's not
by CoolGuySteve 8y ago
Here you go: https://www.gnu.org/software/libc/manual/html_node/Hooks-for-Malloc.html https://www.gnu.org/software/libc/manual/html_node/Hooks-for...
It's not even a page of copy/paste code to make a hook do whatever you want. Writing a .so for LD_PRELOAD is similarly a handful of lines.
Or you can use the plethora of open source debugging LD_PRELOAD libraries like efence.
And in a larger sense, you should try learning more and getting better at programming instead of being so dismissive.
- logicallee 8y agoThanks for the link. I had no idea this could be considered "basic". You're right, I didn't hear about this while developing some C++ programs. Out of curiosity, what's something you consider difficult or at the edge of your abilities while programming C++ in Linux? (Maybe something related to code generation?) You're clearly a very advanced user.