[Lldb-commits] [lldb] r140843 - /lldb/trunk/source/API/SBDebugger.cpp

Greg Clayton gclayton at apple.com
Thu Sep 29 20:29:05 PDT 2011


Author: gclayton
Date: Thu Sep 29 22:29:05 2011
New Revision: 140843

URL: http://llvm.org/viewvc/llvm-project?rev=140843&view=rev
Log:
After deleting a target, clear the target object and remove orphaned modules.


Modified:
    lldb/trunk/source/API/SBDebugger.cpp

Modified: lldb/trunk/source/API/SBDebugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBDebugger.cpp?rev=140843&r1=140842&r2=140843&view=diff
==============================================================================
--- lldb/trunk/source/API/SBDebugger.cpp (original)
+++ lldb/trunk/source/API/SBDebugger.cpp Thu Sep 29 22:29:05 2011
@@ -614,6 +614,8 @@
     {
         // No need to lock, the target list is thread safe
         result = m_opaque_sp->GetTargetList().DeleteTarget (target.m_opaque_sp);
+        target.Clear();
+        ModuleList::RemoveOrphanSharedModules();
     }
 
     LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));





More information about the lldb-commits mailing list