diff options
Diffstat (limited to 'tools')
-rwxr-xr-x[-rw-r--r--] | tools/valgrind/valgrind.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/valgrind/valgrind.sh b/tools/valgrind/valgrind.sh index d0cff56..2aa06fc 100644..100755 --- a/tools/valgrind/valgrind.sh +++ b/tools/valgrind/valgrind.sh @@ -27,16 +27,18 @@ if [ ! -x $VALGRIND ]; then VALGRIND="valgrind" fi -SUPPRESSIONS=`pwd`/tools/valgrind/suppressions.txt +SUPPRESSIONS="$(cd `dirname "$0"` && pwd)/suppressions.txt" set -v # Pass GTK glib allocations through to system malloc so valgrind sees them. +# Ask GTK to abort on any critical or warning assertions. # Overwrite newly allocated or freed objects with 0x41 to catch inproper use. # smc-check=all is required for valgrind to see v8's dynamic code generation. # trace-children to follow into the renderer processes. # Prompt to attach gdb when there was an error detected. G_SLICE=always-malloc \ +G_DEBUG=fatal_warnings \ "$VALGRIND" \ --trace-children=yes \ --db-command="$GDB -nw %f %p" \ |