Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: tools/valgrind/asan/asan_symbolize.py

Issue 584693002: Roll asan_symbolize.py to llvm r218072. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | tools/valgrind/asan/third_party/README.chromium » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # 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
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 from third_party import asan_symbolize 7 from third_party import asan_symbolize
8 8
9 import os 9 import os
10 import re 10 import re
(...skipping 26 matching lines...) Expand all
37 # Since sys.stdout is a C++ object, it's impossible to do 37 # Since sys.stdout is a C++ object, it's impossible to do
38 # sys.stdout.write = lambda... 38 # sys.stdout.write = lambda...
39 sys.stdout = LineBuffered(sys.stdout) 39 sys.stdout = LineBuffered(sys.stdout)
40 os.environ['PYTHONUNBUFFERED'] = 'x' 40 os.environ['PYTHONUNBUFFERED'] = 'x'
41 41
42 42
43 def main(): 43 def main():
44 disable_buffering() 44 disable_buffering()
45 asan_symbolize.demangle = True 45 asan_symbolize.demangle = True
46 loop = asan_symbolize.SymbolizationLoop(binary_name_filter=fix_filename) 46 loop = asan_symbolize.SymbolizationLoop(binary_name_filter=fix_filename)
47 loop.process_stdin() 47 loop.process_logfile()
48 48
49 if __name__ == '__main__': 49 if __name__ == '__main__':
50 main() 50 main()
OLDNEW
« no previous file with comments | « no previous file | tools/valgrind/asan/third_party/README.chromium » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698