Lines Matching +full:valgrind +full:-
5 # Use of this source code is governed by a BSD-style license
11 # This is a small script for manually launching valgrind, along with passing
14 # $ sh ./tools/valgrind/valgrind.sh ./out/Debug/chrome
18 # That's the script used by the valgrind buildbot.
23 RUN_COMMAND="valgrind"
26 DEFAULT_TOOL_FLAGS=("--db-command=gdb -nw %f %p" "--db-attach=yes" \
28 "--vex-iropt-register-updates=allregs-at-mem-access" \
31 "--malloc-fill=41" "--free-fill=41" \
33 "--num-callers=30")
41 set -e
43 if [ $# -eq 0 ]; then
49 declare -a DEFAULT_TOOL_FLAGS[0]
51 # Select a tool different from memcheck with --tool=TOOL as a first argument
52 TMP_STR=`echo $1 | sed 's/^\-\-tool=//'`
58 if echo "$@" | grep "\-\-tool" ; then
59 echo "--tool=TOOL must be the first argument" >&2
77 echo "Using valgrind binaries from ${CHROME_VALGRIND}"
79 set -x
81 # We need to set these variables to override default lib paths hard-coded into
82 # Valgrind binary.
83 export VALGRIND_LIB="$CHROME_VALGRIND/lib/valgrind"
84 export VALGRIND_LIB_INNER="$CHROME_VALGRIND/lib/valgrind"
86 # G_SLICE=always-malloc: make glib use system malloc
94 # GTEST_DEATH_TEST_USE_FORK=1: make gtest death tests valgrind-friendly
96 # When everyone has the latest valgrind, we might want to add
97 # --show-possibly-lost=no
100 G_SLICE=always-malloc \
106 --trace-children=yes \
107 --leak-check=yes \
108 --suppressions="$SUPPRESSIONS" \