summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-05-03 18:46:28 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-05-03 18:46:28 +0000
commit8e1fd43ad7e95633a26e8809604d386bf3135b85 (patch)
tree8a0728929edf1521ebba56d506a7cb9452276df7 /lldb/examples/python
parentbe179ecb7c2ccd3ebc7a659f3e7f8e825a49c9d5 (diff)
downloadbcm5719-llvm-8e1fd43ad7e95633a26e8809604d386bf3135b85.tar.gz
bcm5719-llvm-8e1fd43ad7e95633a26e8809604d386bf3135b85.zip
Fix AttributeError when using crashlog with verbose mode.
rdar://problem/11374653 llvm-svn: 156088
Diffstat (limited to 'lldb/examples/python')
-rwxr-xr-xlldb/examples/python/crashlog.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index a550a8638af..7023137296a 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -95,7 +95,10 @@ class CrashLog(lldb.utils.symbolication.Symbolicator):
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"""
OpenPOWER on IntegriCloud