<rdar://problem/12087275>
Make the crashlog parser able to deal with spaces in the process name.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@161772 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/examples/python/crashlog.py b/examples/python/crashlog.py
index 05b7ce3..07b87ad 100755
--- a/examples/python/crashlog.py
+++ b/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()