File: mtrace_wrapper

package info (click to toggle)
libspf2 1.2.5-4%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 2,756 kB
  • ctags: 1,177
  • sloc: ansic: 12,265; sh: 8,473; perl: 218; makefile: 130
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"