[Lldb-commits] [lldb] r233779 - Add a call to SBDebugger:Destroy() at the end of the self-hosted

Jason Molenda jmolenda at apple.com
Tue Mar 31 19:09:04 PDT 2015


Author: jmolenda
Date: Tue Mar 31 21:09:04 2015
New Revision: 233779

URL: http://llvm.org/viewvc/llvm-project?rev=233779&view=rev
Log:
Add a call to SBDebugger:Destroy() at the end of the self-hosted
version of this script.  We picked up a bug at some point in March
where scripts that fail to call SBDebugger::Destroy() will crash
in the Debugger C++ dtor.  I want to track the change down which
introduced the change - but this script should be calling
SBDebugger::Destroy() in the first place, so do that.


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=233779&r1=233778&r2=233779&view=diff
==============================================================================
--- lldb/trunk/examples/python/crashlog.py (original)
+++ lldb/trunk/examples/python/crashlog.py Tue Mar 31 21:09:04 2015
@@ -820,6 +820,7 @@ if __name__ == '__main__':
     # Create a new debugger instance
     lldb.debugger = lldb.SBDebugger.Create()
     SymbolicateCrashLogs (sys.argv[1:])
+    lldb.SBDebugger.Destroy (lldb.debugger)
 elif getattr(lldb, 'debugger', None):
     lldb.debugger.HandleCommand('command script add -f lldb.macosx.crashlog.Symbolicate crashlog')
     lldb.debugger.HandleCommand('command script add -f lldb.macosx.crashlog.save_crashlog save_crashlog')





More information about the lldb-commits mailing list