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

# Copyright (c) 2011 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/../../../third_party/asan/scripts/asan_symbolize.py |
  c++filt