Added "void Clear();" methods to SBDebugger, SBTarget and SBThread so they can release their shared pointers.

git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@109882 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBDebugger.cpp b/source/API/SBDebugger.cpp
index 84856ef..a07a8ae 100644
--- a/source/API/SBDebugger.cpp
+++ b/source/API/SBDebugger.cpp
@@ -43,6 +43,12 @@
     Debugger::Terminate();
 }
 
+void
+SBDebugger::Clear ()
+{
+    m_opaque_sp.reset();
+}
+
 SBDebugger
 SBDebugger::Create()
 {
diff --git a/source/API/SBTarget.cpp b/source/API/SBTarget.cpp
index 85ec06c..b12a5ae 100644
--- a/source/API/SBTarget.cpp
+++ b/source/API/SBTarget.cpp
@@ -353,6 +353,13 @@
     return 0;
 }
 
+void
+SBTarget::Clear ()
+{
+    m_opaque_sp.reset();
+}
+
+
 SBModule
 SBTarget::FindModule (const SBFileSpec &sb_file_spec)
 {
diff --git a/source/API/SBThread.cpp b/source/API/SBThread.cpp
index 2682705..e52496a 100644
--- a/source/API/SBThread.cpp
+++ b/source/API/SBThread.cpp
@@ -67,6 +67,13 @@
     return m_opaque_sp != NULL;
 }
 
+void
+SBThread::Clear ()
+{
+    m_opaque_sp.reset();
+}
+
+
 StopReason
 SBThread::GetStopReason()
 {