LD_PRELOAD hook to trace malloc and free
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
hook.c

README.md

Heap tracer

gcc -o hook.so -fPIC -shared hook.c -ldl

Run the executable with: LD_PRELOAD=PATH/TO//hook.so ./myexecutable

or in GDB with: set exec-wrapper env 'LD_PRELOAD=./hook.so'