<rdar://problem/12087275>

Make the crashlog parser able to deal with spaces in the process name.

llvm-svn: 161772
This commit is contained in:
Greg Clayton 2012-08-13 18:48:03 +00:00
parent 81a78ad59c
commit 45b673dad5

View File

@ -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()