[Lldb-commits] [lldb] r202933 - Small fix to DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule needed

Jason Molenda jmolenda at apple.com
Tue Mar 4 19:33:01 PST 2014


Author: jmolenda
Date: Tue Mar  4 21:33:01 2014
New Revision: 202933

URL: http://llvm.org/viewvc/llvm-project?rev=202933&view=rev
Log:
Small fix to DynamicLoaderDarwinKernel::KextImageInfo::LoadImageUsingMemoryModule needed
with Greg's change to how we load modules in r202890.

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=202933&r1=202932&r2=202933&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp (original)
+++ lldb/trunk/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp Tue Mar  4 21:33:01 2014
@@ -810,7 +810,7 @@ DynamicLoaderDarwinKernel::KextImageInfo
             // 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());





More information about the lldb-commits mailing list