Add glib options to help out valgrind
authorBenjamin Poirier <benjamin.poirier@polymtl.ca>
Fri, 18 Dec 2009 19:15:11 +0000 (14:15 -0500)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Fri, 18 Dec 2009 23:05:20 +0000 (18:05 -0500)
Signed-off-by: Benjamin Poirier <benjamin.poirier@polymtl.ca>
runlttv

diff --git a/runlttv b/runlttv
index 5f3ef31d34f2dc9ca5c0101455d1b54be39b705b..9dfc6bf820700a522b27f5c2b0d5e5585d666592 100755 (executable)
--- a/runlttv
+++ b/runlttv
@@ -89,7 +89,7 @@ LTTV_ARGS="$BOPTIONS $LIBS $TRACEFILES $AOPTIONS"
 if [ "$HELPER" = "gdb" ]; then
        LD_LIBRARY_PATH=${BUILDPATH}/ltt/.libs gdb --args $LTTV_EXEC $LTTV_ARGS
 elif [ "$HELPER" = "valgrind" ]; then
-       LD_LIBRARY_PATH=${BUILDPATH}/ltt/.libs valgrind --show-reachable=yes --leak-check=full --error-limit=no $LTTV_EXEC $LTTV_ARGS
+       LD_LIBRARY_PATH=${BUILDPATH}/ltt/.libs G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --show-reachable=yes --leak-check=full --error-limit=no $LTTV_EXEC $LTTV_ARGS
 elif [ "$HELPER" = "massif" ]; then
        LD_LIBRARY_PATH=${BUILDPATH}/ltt/.libs valgrind --tool=massif $LTTV_EXEC $LTTV_ARGS
 elif [ "$HELPER" = "strace" ]; then
This page took 0.023531 seconds and 4 git commands to generate.