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

Johnny Chen johnny.chen at apple.com
Thu May 3 11:46:28 PDT 2012


Author: johnny
Date: Thu May  3 13:46:28 2012
New Revision: 156088

URL: http://llvm.org/viewvc/llvm-project?rev=156088&view=rev
Log:
Fix AttributeError when using crashlog with verbose mode.

rdar://problem/11374653

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=156088&r1=156087&r2=156088&view=diff
==============================================================================
--- lldb/trunk/examples/python/crashlog.py (original)
+++ lldb/trunk/examples/python/crashlog.py Thu May  3 13:46:28 2012
@@ -95,7 +95,10 @@
             if self.description:
                 return "[%3u] 0x%16.16x %s" % (self.index, self.pc, self.description)
             else:
-                return "[%3u] 0x%16.16x" % (self.index, self.pc)        
+                return "[%3u] 0x%16.16x" % (self.index, self.pc)
+
+        def dump(self, prefix):
+            print "%s%s" % (prefix, str(self))
     
     class DarwinImage(lldb.utils.symbolication.Image):
         """Class that represents a binary images in a darwin crash log"""





More information about the lldb-commits mailing list