forked from OSchip/llvm-project
Patch submitted by Dan Malea -- I introduced a dependency between
ProcessGDBRemote and DynamicLoaderDarwinKernel and a patch was needed to get this building on Linux. Thanks! llvm-svn: 165193
This commit is contained in:
parent
593dd76044
commit
31a6961c13
|
@ -85,9 +85,13 @@ ifeq ($(HOST_OS),Darwin)
|
|||
endif
|
||||
|
||||
ifeq ($(HOST_OS),Linux)
|
||||
USEDLIBS += lldbPluginProcessPOSIX.a \
|
||||
USEDLIBS += lldbHostLinux.a \
|
||||
lldbPluginProcessLinux.a \
|
||||
lldbHostLinux.a
|
||||
lldbPluginProcessPOSIX.a \
|
||||
lldbPluginDynamicLoaderMacOSX.a \
|
||||
lldbPluginDynamicLoaderDarwinKernel.a \
|
||||
lldbPluginOperatingSystemDarwinKernel.a
|
||||
|
||||
endif
|
||||
|
||||
ifeq ($(HOST_OS),FreeBSD)
|
||||
|
|
|
@ -409,7 +409,8 @@ DynamicLoaderDarwinKernel::LoadKernelModuleIfNeeded()
|
|||
{
|
||||
kernel_name = m_kernel.module_sp->GetObjectFile()->GetFileSpec().GetFilename();
|
||||
}
|
||||
strlcpy (m_kernel.name, kernel_name.AsCString(), sizeof(m_kernel.name));
|
||||
strncpy (m_kernel.name, kernel_name.AsCString(), sizeof(m_kernel.name));
|
||||
m_kernel.name[sizeof (m_kernel.name) - 1] = '\0';
|
||||
|
||||
if (m_kernel.address == LLDB_INVALID_ADDRESS)
|
||||
{
|
||||
|
|
|
@ -33,6 +33,8 @@ DIRS += Process/mach-core
|
|||
endif
|
||||
|
||||
ifeq ($(HOST_OS),Linux)
|
||||
DIRS += DynamicLoader/MacOSX-DYLD DynamicLoader/Darwin-Kernel
|
||||
DIRS += OperatingSystem/Darwin-Kernel
|
||||
DIRS += Process/Linux Process/POSIX
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue