OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2013 The Chromium Authors. All rights reserved. | 2 # Copyright 2013 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 extract minidumps from dmp crash dumps.""" | 6 """A tool to extract minidumps from dmp crash dumps.""" |
7 | 7 |
8 import os | 8 import os |
9 import sys | 9 import sys |
10 from cgi import parse_multipart | 10 from cgi import parse_multipart |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 print 'Usage: %s [dmp file] [minidump]' % sys.argv[0] | 42 print 'Usage: %s [dmp file] [minidump]' % sys.argv[0] |
43 print '' | 43 print '' |
44 print 'Extracts the minidump stored in the crash dump file' | 44 print 'Extracts the minidump stored in the crash dump file' |
45 return 1 | 45 return 1 |
46 | 46 |
47 ProcessDump(sys.argv[1], sys.argv[2]) | 47 ProcessDump(sys.argv[1], sys.argv[2]) |
48 | 48 |
49 | 49 |
50 if '__main__' == __name__: | 50 if '__main__' == __name__: |
51 sys.exit(main()) | 51 sys.exit(main()) |
OLD | NEW |