diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2012-05-03 22:31:30 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2012-05-03 22:31:30 +0000 |
| commit | 356782f5f6dafe135e252a676ffb3f64e734ace6 (patch) | |
| tree | 40f6771a14fb108eb7f9b61e2d06c1c8b1447594 /lldb/examples | |
| parent | a46e62424bd148012b37a0cca405877e708973c8 (diff) | |
| download | bcm5719-llvm-356782f5f6dafe135e252a676ffb3f64e734ace6.tar.gz bcm5719-llvm-356782f5f6dafe135e252a676ffb3f64e734ace6.zip | |
Fix the following error when importing crashlog.py from a Python interactive session:
AttributeError: 'module' object has no attribute 'debugger'
llvm-svn: 156115
Diffstat (limited to 'lldb/examples')
| -rwxr-xr-x | lldb/examples/python/crashlog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index 7023137296a..826b15ceb2a 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -469,7 +469,7 @@ if __name__ == '__main__': # Create a new debugger instance lldb.debugger = lldb.SBDebugger.Create() SymbolicateCrashLog (sys.argv[1:]) -elif lldb.debugger: +elif getattr(lldb, 'debugger', None): lldb.debugger.HandleCommand('command script add -f lldb.macosx.crashlog.Symbolicate crashlog') print '"crashlog" command installed, type "crashlog --help" for detailed help' |

