File: mtrace_wrapper

package info (click to toggle)
libspf2 1.0.4-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,676 kB
  • ctags: 1,065
  • sloc: ansic: 11,880; sh: 8,437; perl: 212; makefile: 99
file content (16 lines) | stat: -rwxr-xr-x 252 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

#set -x 

# just to make gdb<->bash easier

rm -f ./mtrace.out

export MALLOC_TRACE=./mtrace.out 
export MALLOC_CHECK_=2

source valgrind_wrapper

mout=`mtrace $PROG mtrace.out 2>/dev/null`

[ "$mout" != "No memory leaks." ] && echo "$mout"