diff options
author | Greg Clayton <gclayton@apple.com> | 2016-12-08 00:22:45 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2016-12-08 00:22:45 +0000 |
commit | e04e5b954a1cfb3bb6491c9071a00105dac13127 (patch) | |
tree | effad0bf969f75c1d5c5da4f0d1980ce9574d8e7 | |
parent | cfd183ee7e56438f96e6453d319f3df8e900678c (diff) | |
download | bcm5719-llvm-e04e5b954a1cfb3bb6491c9071a00105dac13127.tar.gz bcm5719-llvm-e04e5b954a1cfb3bb6491c9071a00105dac13127.zip |
Improve crashlog.py so it can handle more iOS crashlog files.
<rdar://problem/29191857>
llvm-svn: 289006
-rwxr-xr-x | lldb/examples/python/crashlog.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index bb1523523df..abd6aaae778 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -380,9 +380,15 @@ class CrashLog(symbolication.Symbolicator): elif line.startswith('Exception Codes:'): self.thread_exception_data = line[16:].strip() continue + elif line.startswith('Exception Subtype:'): # iOS + self.thread_exception_data = line[18:].strip() + continue elif line.startswith('Crashed Thread:'): self.crashed_thread_idx = int(line[15:].strip().split()[0]) continue + elif line.startswith('Triggered by Thread:'): # iOS + self.crashed_thread_idx = int(line[20:].strip().split()[0]) + continue elif line.startswith('Report Version:'): self.version = int(line[15:].strip()) continue @@ -423,6 +429,11 @@ class CrashLog(symbolication.Symbolicator): app_specific_backtrace = True idx = int(app_backtrace_match.group(1)) thread = CrashLog.Thread(idx, True) + elif line.startswith('Last Exception Backtrace:'): # iOS + parse_mode = PARSE_MODE_THREAD + app_specific_backtrace = True + idx = 1 + thread = CrashLog.Thread(idx, True) self.info_lines.append(line.strip()) elif parse_mode == PARSE_MODE_THREAD: if line.startswith('Thread'): |