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

Greg Clayton gclayton at apple.com
Wed May 16 13:49:19 PDT 2012


Author: gclayton
Date: Wed May 16 15:49:19 2012
New Revision: 156945

URL: http://llvm.org/viewvc/llvm-project?rev=156945&view=rev
Log:
Fixed an exception when parsing crash logs.


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=156945&r1=156944&r2=156945&view=diff
==============================================================================
--- lldb/trunk/examples/python/crashlog.py (original)
+++ lldb/trunk/examples/python/crashlog.py Wed May 16 15:49:19 2012
@@ -421,7 +421,8 @@
                                 print image
                     if matches_found == 0:
                         for (image_idx, image) in enumerate(crash_log.images):
-                            if string.find(image.get_resolved_path(), image_path) >= 0:
+                            resolved_image_path = image.get_resolved_path()
+                            if resolved_image_path and string.find(image.get_resolved_path(), image_path) >= 0:
                                 print image
         else:
             for crash_log in self.crash_logs:





More information about the lldb-commits mailing list