diff options
author | Sergey Matveev <earthdok@google.com> | 2015-03-06 17:05:28 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2015-03-06 17:05:28 +0000 |
commit | 4a0e6a55f6b6858ee0cd89054c203337f2890056 (patch) | |
tree | c8035b893bde0860e71004dc33cdf1fdcb36a11d /lib/asan/scripts/asan_symbolize.py | |
parent | b3753ee30683106c2778da97368ab73651045386 (diff) | |
download | compiler-rt-4a0e6a55f6b6858ee0cd89054c203337f2890056.tar.gz |
[asan] Allow users of asan_symbolize.py to forbid fallback to atos/addr2line.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@231492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/scripts/asan_symbolize.py')
-rwxr-xr-x | lib/asan/scripts/asan_symbolize.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asan/scripts/asan_symbolize.py b/lib/asan/scripts/asan_symbolize.py index 59fceaaed..b9d3ad3ad 100755 --- a/lib/asan/scripts/asan_symbolize.py +++ b/lib/asan/scripts/asan_symbolize.py @@ -23,6 +23,7 @@ sysroot_path = None binary_name_filter = None fix_filename_patterns = None logfile = sys.stdin +allow_system_symbolizer = True # FIXME: merge the code that calls fix_filename(). def fix_filename(file_name): @@ -392,6 +393,8 @@ class SymbolizationLoop(object): [BreakpadSymbolizerFactory(binary), self.llvm_symbolizers[binary]]) result = symbolizers[binary].symbolize(addr, binary, offset) if result is None: + if not allow_system_symbolizer: + raise Exception('Failed to launch or use llvm-symbolizer.') # Initialize system symbolizer only if other symbolizers failed. symbolizers[binary].append_symbolizer( SystemSymbolizerFactory(self.system, addr, binary)) |