<rdar://problem/12087275>
Make the crashlog parser able to deal with spaces in the process name.
llvm-svn: 161772
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 @@
# 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()