MegaGlest/mk/linux/mg_valgrind.sh

14 lines
310 B
Bash
Raw Normal View History

2011-09-28 17:38:16 +02:00
#! /bin/sh
exec 3>&1
export GLIBCPP_FORCE_NEW=1
export GLIBCXX_FORCE_NEW=1
export G_SLICE=always-malloc
exec valgrind --num-callers=50 \
--leak-check=yes \
--leak-resolution=high \
--show-reachable=yes \
"$@" 2>&1 1>&3 3>&- |
sed 's/^==[0-9]*==/==/' >&2 1>&2 3>&-