summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2013-02-19 07:41:13 +0000
committerJason Molenda <jmolenda@apple.com>2013-02-19 07:41:13 +0000
commita4d3e1d2a29adf7af7761330eb83005327020161 (patch)
treecac545306e9274a246f98d7c04563bd4d23463d5 /lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
parentd76fb6ea1230fd96e69e2eb76c10887fdc2ec7d6 (diff)
downloadbcm5719-llvm-a4d3e1d2a29adf7af7761330eb83005327020161.tar.gz
bcm5719-llvm-a4d3e1d2a29adf7af7761330eb83005327020161.zip
Fix a case where a kext module was being added to the Target
twice. llvm-svn: 175496
Diffstat (limited to 'lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp')
-rw-r--r--lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
index 2eb22d96e6c..d0c9bf21a6f 100644
--- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
+++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
@@ -811,7 +811,7 @@ DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule (Process *p
}
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);
OpenPOWER on IntegriCloud