[Lldb-commits] [lldb] r161772 - /lldb/trunk/examples/python/crashlog.py

Greg Clayton gclayton at apple.com
Mon Aug 13 11:48:03 PDT 2012


Author: gclayton
Date: Mon Aug 13 13:48:03 2012
New Revision: 161772

URL: http://llvm.org/viewvc/llvm-project?rev=161772&view=rev
Log:
<rdar://problem/12087275>

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


Modified:
    lldb/trunk/examples/python/crashlog.py

Modified: lldb/trunk/examples/python/crashlog.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/crashlog.py?rev=161772&r1=161771&r2=161772&view=diff
==============================================================================
--- lldb/trunk/examples/python/crashlog.py (original)
+++ lldb/trunk/examples/python/crashlog.py Mon Aug 13 13:48:03 2012
@@ -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()





More information about the lldb-commits mailing list