It has been a while since I last worked on Aesalon proper.
[aesalon.git] / module / modules / dynamicMemory / calloc_offset.sh
blob838dd14e13a5f55049ba85dd938204882550b8b0
1 #!/bin/sh
3 cat monitor.conf | grep -v callocOffset > monitor.conf.temp
4 mv monitor.conf.temp monitor.conf
6 echo -n 'set callocOffset=' >> monitor.conf
7 nm -D `cat /proc/self/maps | grep libc-2 | head -n 1 | awk '{print $6}'` | grep ' calloc' | awk '{print $1}' | sed 's/^0*/0x/' >> monitor.conf