aboutsummaryrefslogtreecommitdiff
path: root/lldb/examples/python/crashlog.py
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-08-13 18:48:03 +0000
committerGreg Clayton <gclayton@apple.com>2012-08-13 18:48:03 +0000
commit45b673dad5042c7de1142183a21e3ea5b2f31497 (patch)
tree4f804199b045b18d839e3dedf3bd9fbc65a8c4c1 /lldb/examples/python/crashlog.py
parent81a78ad59c8ed20b177fd0ab078e39522b9f20e6 (diff)
downloadllvm-45b673dad5042c7de1142183a21e3ea5b2f31497.zip
llvm-45b673dad5042c7de1142183a21e3ea5b2f31497.tar.gz
llvm-45b673dad5042c7de1142183a21e3ea5b2f31497.tar.bz2
<rdar://problem/12087275>
Make the crashlog parser able to deal with spaces in the process name. llvm-svn: 161772
Diffstat (limited to 'lldb/examples/python/crashlog.py')
-rwxr-xr-xlldb/examples/python/crashlog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index 05b7ce3..07b87ad7 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -219,7 +219,7 @@ class CrashLog(symbolication.Symbolicator):
# print 'PARSE_MODE_NORMAL'
elif parse_mode == PARSE_MODE_NORMAL:
if line.startswith ('Process:'):
- (self.process_name, pid_with_brackets) = line[8:].strip().split()
+ (self.process_name, pid_with_brackets) = line[8:].strip().split(' [')
self.process_id = pid_with_brackets.strip('[]')
elif line.startswith ('Path:'):
self.process_path = line[5:].strip()