diff options
author | Jason Molenda <jmolenda@apple.com> | 2015-04-01 02:09:04 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2015-04-01 02:09:04 +0000 |
commit | 7a5014b04057f9f471d6977a98cc6a87d5a9e484 (patch) | |
tree | b795b8facfc5bdd5d5ae0edf551134deb976730d /lldb/examples/python | |
parent | b0f076910b3b2f9cad9c366e7aafb9d92414869e (diff) | |
download | bcm5719-llvm-7a5014b04057f9f471d6977a98cc6a87d5a9e484.tar.gz bcm5719-llvm-7a5014b04057f9f471d6977a98cc6a87d5a9e484.zip |
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.
llvm-svn: 233779
Diffstat (limited to 'lldb/examples/python')
-rwxr-xr-x | lldb/examples/python/crashlog.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index 52ffb78d441..403b92f353f 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -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') |