OLD | NEW |
1 #!/usr/bin/env python2.6 | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """ | 6 """ |
7 This script can take an Apple-style CrashReporter log and symbolicate it. This | 7 This script can take an Apple-style CrashReporter log and symbolicate it. This |
8 is useful for when a user's reports aren't being uploaded, for example. | 8 is useful for when a user's reports aren't being uploaded, for example. |
9 | 9 |
10 Only versions 6, 7, 8, and 9 reports are supported. For more information on the | 10 Only versions 6, 7, 8, and 9 reports are supported. For more information on the |
11 file format, reference this document: | 11 file format, reference this document: |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 print >>sys.stderr, 'Using symbols from ' + symbol_path | 495 print >>sys.stderr, 'Using symbols from ' + symbol_path |
496 print >>sys.stderr, '=' * 80 | 496 print >>sys.stderr, '=' * 80 |
497 | 497 |
498 report.Symbolicate(symbol_path) | 498 report.Symbolicate(symbol_path) |
499 PrettyPrintReport(report) | 499 PrettyPrintReport(report) |
500 return 0 | 500 return 0 |
501 | 501 |
502 | 502 |
503 if __name__ == '__main__': | 503 if __name__ == '__main__': |
504 sys.exit(Main(sys.argv)) | 504 sys.exit(Main(sys.argv)) |
OLD | NEW |