summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2014-03-05 03:33:01 +0000
committerJason Molenda <jmolenda@apple.com>2014-03-05 03:33:01 +0000
commit0ddfe7f8dc8f8db1ba8fb9eb344d814d7a6a9054 (patch)
treea4917b260c54ae013e3be1b74112b6a4630788e0 /lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
parent0c72fd2b4eafafbff124ed38b9f29ae8efd44d97 (diff)
downloadbcm5719-llvm-0ddfe7f8dc8f8db1ba8fb9eb344d814d7a6a9054.tar.gz
bcm5719-llvm-0ddfe7f8dc8f8db1ba8fb9eb344d814d7a6a9054.zip
Small fix to DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule needed
with Greg's change to how we load modules in r202890. llvm-svn: 202933
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 a27d4b9d814..82a3c830eff 100644
--- a/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
+++ b/lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
@@ -810,7 +810,7 @@ DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule (Process *p
// to be the bundle ID for this kext, e.g. "com.apple.filesystems.msdosfs", and ask the platform
// to find it.
PlatformSP platform_sp (target.GetPlatform());
- if (platform_sp)
+ if (!m_module_sp && platform_sp)
{
ConstString platform_name (platform_sp->GetPluginName());
static ConstString g_platform_name (PlatformDarwinKernel::GetPluginNameStatic());
OpenPOWER on IntegriCloud