#!/bin/sh


TOP_SRC_DIR="/daten/src/git/gnucash"
#
# Other potentially useful options, particularly for valgrind-2.x:
# --tool=memcheck --trace-children=yes
#
export G_SLICE=always-malloc
export G_DEBUG=gc-friendly
exec valgrind -v \
    --suppressions=${TOP_SRC_DIR}/src/debug/valgrind/valgrind-gnucash.supp \
    --suppressions=${TOP_SRC_DIR}/src/debug/valgrind/valgrind-glib.supp \
    --suppressions=${TOP_SRC_DIR}/src/debug/valgrind/valgrind-libfontconfig.supp \
    --suppressions=${TOP_SRC_DIR}/src/debug/valgrind/valgrind-libgda.supp \
    --suppressions=${TOP_SRC_DIR}/src/debug/valgrind/valgrind-libguile.supp \
    --num-callers=25 \
    --error-limit=no \
    --tool=memcheck \
    --leak-check=full \
    $(dirname $0)/gnucash-bin "$@"
