>Even something basic like replacing malloc with your own instrumentation
EDIT: I removed my comment. I thought it was funny that someone would call this basic. apparently I was wrong and it is very common.
EDIT: I removed my comment. I thought it was funny that someone would call this basic. apparently I was wrong and it is very common.
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.
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.