[Lldb-commits] [PATCH] Move LLDB initialization / shutdown to Application
Zachary Turner
zturner at google.com
Wed Mar 18 17:15:57 PDT 2015
This should better handle termination. Previously people would call Debugger::Terminate() which would test the refcount, and only invoke lldb_private::Terminate() when the refcount was 0. This patch reverses this. Applications now call lldb_private::Terminate(), which *always* calls Debugger::Terminate(), and Debugger::Terminate() returns the refcount. lldb_private::Terminate() then only does the actual shutdown once the refcount is 0.
http://reviews.llvm.org/D8428
Files:
cmake/LLDBDependencies.cmake
include/lldb/Application/InitializeLLDB.h
include/lldb/Core/Debugger.h
include/lldb/Host/Host.h
include/lldb/lldb-forward.h
include/lldb/lldb-private-types.h
include/lldb/lldb-private.h
lldb.xcodeproj/project.pbxproj
source/API/SBDebugger.cpp
source/Application/CMakeLists.txt
source/Application/InitializeLLDB.cpp
source/Application/Makefile
source/CMakeLists.txt
source/Core/Debugger.cpp
source/Host/common/Host.cpp
source/Makefile
source/lldb.cpp
tools/lldb-server/lldb-server.cpp
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8428.22231.patch
Type: text/x-patch
Size: 45976 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150319/ef072580/attachment.bin>
More information about the lldb-commits
mailing list