mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
Fix the following error when importing crashlog.py from a Python interactive session:
AttributeError: 'module' object has no attribute 'debugger' llvm-svn: 156115
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user