diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2012-05-03 18:46:28 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2012-05-03 18:46:28 +0000 |
| commit | 8e1fd43ad7e95633a26e8809604d386bf3135b85 (patch) | |
| tree | 8a0728929edf1521ebba56d506a7cb9452276df7 /lldb/examples/python | |
| parent | be179ecb7c2ccd3ebc7a659f3e7f8e825a49c9d5 (diff) | |
| download | bcm5719-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-x | lldb/examples/python/crashlog.py | 5 |
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""" |

