summaryrefslogtreecommitdiffstats
path: root/chromium/tools/valgrind/asan/asan_wrapper.sh
blob: 4e34fed5a09c6701dc1e1e57f762ec5d32774072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# A wrapper that runs the program and filters the output through
# asan_symbolize.py and c++filt
#
# TODO(glider): this should be removed once EmbeddedTool in valgrind_test.py
# starts supporting pipes.

export THISDIR=`dirname $0`
"$@" 2>&1 |
  $THISDIR/asan_symbolize.py |
  c++filt