In ProcessKDP, if the remote connection is not EFI,
force this to be a DynamicLoaderDarwinKernel debug
session even if we didn't get back a load address
for the kernel.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181264 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp b/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
index 3eb2017..ef88dd3 100644
--- a/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
+++ b/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
@@ -242,9 +242,12 @@
                     {
                         m_dyld_plugin_name = DynamicLoaderStatic::GetPluginNameStatic();
                     }
-                    else if (kernel_load_addr != LLDB_INVALID_ADDRESS)
+                    else 
                     {
-                        m_kernel_load_addr = kernel_load_addr;
+                        if (kernel_load_addr != LLDB_INVALID_ADDRESS)
+                        {
+                            m_kernel_load_addr = kernel_load_addr;
+                        }
                         m_dyld_plugin_name = DynamicLoaderDarwinKernel::GetPluginNameStatic();
                     }