| OLD | NEW |
| 1 #!/usr/bin/env python | 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 """A tool to collect crash signatures for builds. | 6 """A tool to collect crash signatures for builds. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 import optparse | 9 import optparse |
| 10 import os | 10 import os |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 if CdbExistsAtLocation(debugger_dir): | 50 if CdbExistsAtLocation(debugger_dir): |
| 51 return debugger_dir | 51 return debugger_dir |
| 52 # windows 8 32 bit | 52 # windows 8 32 bit |
| 53 debugger_dir = '%s\\Windows Kits\\8.0\\Debuggers\\x86' % program_files | 53 debugger_dir = '%s\\Windows Kits\\8.0\\Debuggers\\x86' % program_files |
| 54 if CdbExistsAtLocation(debugger_dir): | 54 if CdbExistsAtLocation(debugger_dir): |
| 55 return debugger_dir | 55 return debugger_dir |
| 56 # windows 8.1 64 bit | 56 # windows 8.1 64 bit |
| 57 debugger_dir = '%s\\Windows Kits\\8.1\\Debuggers\\x64' % program_files | 57 debugger_dir = '%s\\Windows Kits\\8.1\\Debuggers\\x64' % program_files |
| 58 if CdbExistsAtLocation(debugger_dir): | 58 if CdbExistsAtLocation(debugger_dir): |
| 59 return debugger_dir | 59 return debugger_dir |
| 60 # windows 10 64 bit |
| 61 debugger_dir = '%s\\Windows Kits\\10\\Debuggers\\x64' % program_files |
| 62 if CdbExistsAtLocation(debugger_dir): |
| 63 return debugger_dir |
| 60 program_files = os.environ.get('PROGRAMW6432') | 64 program_files = os.environ.get('PROGRAMW6432') |
| 61 if not program_files: | 65 if not program_files: |
| 62 return None | 66 return None |
| 63 # 64 bit debugger on 64 bit platform. | 67 # 64 bit debugger on 64 bit platform. |
| 64 debugger_dir = '%s\\Debugging Tools For Windows (x64)' % program_files | 68 debugger_dir = '%s\\Debugging Tools For Windows (x64)' % program_files |
| 65 if CdbExistsAtLocation(debugger_dir): | 69 if CdbExistsAtLocation(debugger_dir): |
| 66 return debugger_dir | 70 return debugger_dir |
| 67 return None | 71 return None |
| 68 | 72 |
| 69 | 73 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 dump_count += 1 | 157 dump_count += 1 |
| 154 | 158 |
| 155 print '%s dumps found' % dump_count | 159 print '%s dumps found' % dump_count |
| 156 | 160 |
| 157 # TODO(huanr): add the functionality of archiving dumps. | 161 # TODO(huanr): add the functionality of archiving dumps. |
| 158 return 0 | 162 return 0 |
| 159 | 163 |
| 160 | 164 |
| 161 if '__main__' == __name__: | 165 if '__main__' == __name__: |
| 162 sys.exit(main()) | 166 sys.exit(main()) |
| OLD | NEW |