Add more NetBSD platform glue for lldb

Summary:
These changes are still incomplete, but  we are almost there.

Changes:
- CMake and gmake code
- SWIG code
- minor code additions

Reviewers: emaste, joerg

Subscribers: youri, akat1, brucem, lldb-commits, joerg

Differential Revision: http://reviews.llvm.org/D14042

llvm-svn: 252403
This commit is contained in:
Bruce Mitchener 2015-11-07 15:31:54 +00:00
parent be81c28ec6
commit d31113f0b9
6 changed files with 14 additions and 4 deletions

View File

@ -38,6 +38,7 @@ set( LLDB_USED_LIBS
lldbPluginPlatformFreeBSD
lldbPluginPlatformKalimba
lldbPluginPlatformLinux
lldbPluginPlatformNetBSD
lldbPluginPlatformPOSIX
lldbPluginPlatformWindows
lldbPluginObjectContainerMachOArchive
@ -105,6 +106,13 @@ if ( CMAKE_SYSTEM_NAME MATCHES "FreeBSD" )
)
endif ()
# NetBSD-only libraries
if ( CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
list(APPEND LLDB_USED_LIBS
lldbPluginProcessPOSIX
)
endif ()
# Darwin-only libraries
if ( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
list(APPEND LLDB_USED_LIBS

View File

@ -381,7 +381,8 @@ endif()
# ensure we build lldb-server when an lldb target is being built.
if ((CMAKE_SYSTEM_NAME MATCHES "Darwin") OR
(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") OR
(CMAKE_SYSTEM_NAME MATCHES "Linux"))
(CMAKE_SYSTEM_NAME MATCHES "Linux") OR
(CMAKE_SYSTEM_NAME MATCHES "NetBSD"))
set(LLDB_CAN_USE_LLDB_SERVER 1)
else()
set(LLDB_CAN_USE_LLDB_SERVER 0)

View File

@ -33,6 +33,7 @@
#include "Plugins/Platform/Linux/PlatformLinux.h"
#include "Plugins/Platform/MacOSX/PlatformMacOSX.h"
#include "Plugins/Platform/MacOSX/PlatformRemoteiOS.h"
#include "Plugins/Platform/NetBSD/PlatformNetBSD.h"
#include "Plugins/Platform/Windows/PlatformWindows.h"
#include "Plugins/Process/gdb-remote/ProcessGDBRemoteLog.h"

View File

@ -67,7 +67,7 @@ lldb_private::GetVersion ()
return g_version_string;
#else
// On Linux/FreeBSD/Windows, report a version number in the same style as the clang tool.
// On platforms other than Darwin, report a version number in the same style as the clang tool.
static std::string g_version_str;
if (g_version_str.empty())
{

View File

@ -13,7 +13,7 @@ include $(LLDB_LEVEL)/../../Makefile.config
DIRS :=
# enable lldb-gdbserver for supported platforms
ifneq (,$(strip $(filter $(HOST_OS), FreeBSD Linux GNU/kFreeBSD)))
ifneq (,$(strip $(filter $(HOST_OS), FreeBSD Linux NetBSD GNU/kFreeBSD)))
DIRS += lldb-server
endif

View File

@ -76,7 +76,7 @@ set(LLDB_MI_SOURCES
Platform.cpp
)
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" OR CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
add_definitions( -DIMPORT_LIBLLDB )
list(APPEND LLDB_MI_SOURCES
${LLDB_SOURCE_ROOT}/Host/common/GetOptInc.cpp