OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client 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 """Utility to decode a crash dump generated by untrusted_crash_dump.[ch] | 6 """Utility to decode a crash dump generated by untrusted_crash_dump.[ch] |
7 | 7 |
8 Currently this produces a simple stack trace. | 8 Currently this produces a simple stack trace. |
9 """ | 9 """ |
10 | 10 |
11 import json | 11 import json |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 addr2line=options.add2line, | 193 addr2line=options.add2line, |
194 library_paths=options.library_paths, | 194 library_paths=options.library_paths, |
195 platform=options.platform) | 195 platform=options.platform) |
196 info = decoder.LoadAndDecode(args[0]) | 196 info = decoder.LoadAndDecode(args[0]) |
197 trace = decoder.StackTrace(info) | 197 trace = decoder.StackTrace(info) |
198 decoder.PrintTrace(trace, sys.stdout) | 198 decoder.PrintTrace(trace, sys.stdout) |
199 | 199 |
200 | 200 |
201 if __name__ == '__main__': | 201 if __name__ == '__main__': |
202 Main(sys.argv[1:]) | 202 Main(sys.argv[1:]) |
OLD | NEW |