summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorMatthew Gardiner <mg11@csr.com>2014-10-06 05:22:29 +0000
committerMatthew Gardiner <mg11@csr.com>2014-10-06 05:22:29 +0000
commit64ee99183b8d9d7f2c3905c8a19cfc116abda1e7 (patch)
tree3272448aaf05de76f3a416c10f7b6620df5ebab8 /lldb/source/API
parentfd58072675941da0ca25cdaa8cfbb42db1945133 (diff)
downloadbcm5719-llvm-64ee99183b8d9d7f2c3905c8a19cfc116abda1e7.tar.gz
bcm5719-llvm-64ee99183b8d9d7f2c3905c8a19cfc116abda1e7.zip
Call SBDebugger::Initialize/Terminate from within Create/Destroy.
The above change permits developers using the lldb C++ API to code applications in a more logical manner. llvm-svn: 219102
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBDebugger.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index b53dec2a21d..cd6a96c023c 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -159,6 +159,8 @@ SBDebugger::Create(bool source_init_files, lldb::LogOutputCallback callback, voi
{
Log *log(GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
+ Initialize();
+
SBDebugger debugger;
// Currently we have issues if this function is called simultaneously on two different
@@ -210,6 +212,8 @@ SBDebugger::Destroy (SBDebugger &debugger)
sstr.GetData());
}
+ Terminate();
+
Debugger::Destroy (debugger.m_opaque_sp);
if (debugger.m_opaque_sp.get() != NULL)
OpenPOWER on IntegriCloud