Only try to load the OS plug-in after a shared library load if we don't already have one.

<rdar://problem/24162686>

llvm-svn: 263602
This commit is contained in:
Greg Clayton
2016-03-15 22:44:07 +00:00
parent 0a5f805410
commit 2591fe1985

View File

@@ -6410,7 +6410,10 @@ Process::ModulesDidLoad (ModuleList &module_list)
language_runtime_sp->ModulesDidLoad(module_list);
}
LoadOperatingSystemPlugin(false);
// If we don't have an operating system plug-in, try to load one since
// loading shared libraries might cause a new one to try and load
if (!m_os_ap)
LoadOperatingSystemPlugin(false);
}
void