summaryrefslogtreecommitdiffstats
path: root/tools/valgrind/valgrind.sh
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 19:23:04 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-18 19:23:04 +0000
commit48190b3195abece374b249f93a75242bbffe139c (patch)
tree60e9a5090d064e3284275834b9b0dacd1b4a418e /tools/valgrind/valgrind.sh
parentf1dbc20bf59eb8c7c2f0c671854cfefb3a59cf6d (diff)
downloadchromium_src-48190b3195abece374b249f93a75242bbffe139c.zip
chromium_src-48190b3195abece374b249f93a75242bbffe139c.tar.gz
chromium_src-48190b3195abece374b249f93a75242bbffe139c.tar.bz2
A few updates to the valgrind runner script.
- Add G_DEBUG=fatal_warnings to abort on GTK assertions. - Find the suppressions file no matter where you run the script from. - Add +x on the script. Review URL: http://codereview.chromium.org/45011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12001 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/valgrind/valgrind.sh')
-rwxr-xr-x[-rw-r--r--]tools/valgrind/valgrind.sh4
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" \