mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
After deleting a target, clear the target object and remove orphaned modules.
llvm-svn: 140843
This commit is contained in:
@@ -614,6 +614,8 @@ SBDebugger::DeleteTarget (lldb::SBTarget &target)
|
||||
{
|
||||
// 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));
|
||||
|
||||
Reference in New Issue
Block a user