[Lldb-commits] [lldb] r175496 - Fix a case where a kext module was being added to the Target
Jason Molenda
jmolenda at apple.com
Mon Feb 18 23:41:14 PST 2013
Author: jmolenda
Date: Tue Feb 19 01:41:13 2013
New Revision: 175496
URL: http://llvm.org/viewvc/llvm-project?rev=175496&view=rev
Log:
Fix a case where a kext module was being added to the Target
twice.
Modified:
lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
Modified: lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp?rev=175496&r1=175495&r2=175496&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp (original)
+++ lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp Tue Feb 19 01:41:13 2013
@@ -811,7 +811,7 @@ DynamicLoaderDarwinKernel::KextImageInfo
}
if (uuid_match_ok)
{
- target.GetImages().Append(m_module_sp);
+ target.GetImages().AppendIfNeeded(m_module_sp);
if (IsKernel() && target.GetExecutableModulePointer() != m_module_sp.get())
{
target.SetExecutableModule (m_module_sp, false);
More information about the lldb-commits
mailing list