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:
Jason Molenda 2012-10-04 02:16:06 +00:00
parent 593dd76044
commit 31a6961c13
3 changed files with 10 additions and 3 deletions

View File

@ -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)

View File

@ -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)
{

View File

@ -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