diff options
author | Greg Clayton <gclayton@apple.com> | 2011-09-30 03:29:05 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-09-30 03:29:05 +0000 |
commit | 753406221b55b95141c8c1239660dc4db4e35ea5 (patch) | |
tree | 9c32f7cdc31952c5f17377671a3320a5c5b83dbc /lldb/source/API/SBDebugger.cpp | |
parent | 2bc22f83ad03ed1d3198f4149e255eb76543cab8 (diff) | |
download | bcm5719-llvm-753406221b55b95141c8c1239660dc4db4e35ea5.tar.gz bcm5719-llvm-753406221b55b95141c8c1239660dc4db4e35ea5.zip |
After deleting a target, clear the target object and remove orphaned modules.
llvm-svn: 140843
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r-- | lldb/source/API/SBDebugger.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index 0f5472a9be3..f97d3f9852b 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -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)); |