From 095eeaa0250161c3912f07c4c43ddb2a00a91faf Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 5 Nov 2013 23:28:00 +0000 Subject: Fixed the test case for "test/functionalities/exec/TestExec.py" on Darwin. The issue was breakpoints were persisting and causing problems. When we exec, we need to clear out the process and target and start fresh with nothing and let the breakpoints populate themselves again. This patch correctly clears out the breakpoints and also flushes the process so that the objects (process/thread/frame) give out valid information. llvm-svn: 194106 --- .../Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp | 2 +- lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/DynamicLoader') diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp index 1b2a1f6b7bb..3403da43fd5 100644 --- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp +++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp @@ -1335,7 +1335,7 @@ DynamicLoaderDarwinKernel::ParseKextSummaries (const Address &kext_summary_addr, // the to_be_removed bool vector; leaving it in place once Cleared() is relatively harmless. } } - m_process->GetTarget().ModulesDidUnload (unloaded_module_list); + m_process->GetTarget().ModulesDidUnload (unloaded_module_list, false); } } diff --git a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp index 8e8314feb7d..4284558c440 100644 --- a/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp +++ b/lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp @@ -370,7 +370,7 @@ DynamicLoaderPOSIXDYLD::RefreshModules() } } loaded_modules.Remove(old_modules); - m_process->GetTarget().ModulesDidUnload(old_modules); + m_process->GetTarget().ModulesDidUnload(old_modules, false); } } -- cgit v1.2.3