| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 |
| 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 5 | 6 |
| 6 # This is a small script for manually launching valgrind, along with passing | 7 # This is a small script for manually launching valgrind, along with passing |
| 7 # it the suppression file, and some helpful arguments (automatically attaching | 8 # it the suppression file, and some helpful arguments (automatically attaching |
| 8 # the debugger on failures, etc). Run it from your repo root, something like: | 9 # the debugger on failures, etc). Run it from your repo root, something like: |
| 9 # $ sh ./tools/valgrind/valgrind.sh ./sconsbuild/Debug/chrome | 10 # $ sh ./tools/valgrind/valgrind.sh ./sconsbuild/Debug/chrome |
| 10 # | 11 # |
| 11 # This is mostly intended for running the chrome browser interactively. | 12 # This is mostly intended for running the chrome browser interactively. |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 G_SLICE=always-malloc \ | 109 G_SLICE=always-malloc \ |
| 109 NSS_DISABLE_ARENA_FREE_LIST=1 \ | 110 NSS_DISABLE_ARENA_FREE_LIST=1 \ |
| 110 G_DEBUG=fatal_warnings \ | 111 G_DEBUG=fatal_warnings \ |
| 111 valgrind \ | 112 valgrind \ |
| 112 --tool=$TOOL_NAME \ | 113 --tool=$TOOL_NAME \ |
| 113 --trace-children=yes \ | 114 --trace-children=yes \ |
| 114 --suppressions="$SUPPRESSIONS" \ | 115 --suppressions="$SUPPRESSIONS" \ |
| 115 --smc-check=all \ | 116 --smc-check=all \ |
| 116 "${DEFAULT_TOOL_FLAGS[@]}" \ | 117 "${DEFAULT_TOOL_FLAGS[@]}" \ |
| 117 "$@" | 118 "$@" |
| OLD | NEW |