15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#!/bin/bash 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# Copyright (c) 2012 The Chromium Authors. All rights reserved. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# Use of this source code is governed by a BSD-style license that can be 55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# found in the LICENSE file. 65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# A wrapper that runs the program and filters the output through 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# asan_symbolize.py and c++filt 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# 105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# TODO(glider): this should be removed once EmbeddedTool in valgrind_test.py 115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)# starts supporting pipes. 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)export THISDIR=`dirname $0` 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)"$@" 2>&1 | 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) $THISDIR/asan_symbolize.py | 165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) c++filt 17