Skip to content

Commit 1b476ec

Browse files
authored
[lldb] A few more pieces towards OpenBSD support (llvm#121051)
1 parent 698bb5f commit 1b476ec

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

lldb/cmake/modules/LLDBConfig.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ endif()
292292

293293
# Figure out if lldb could use lldb-server. If so, then we'll
294294
# ensure we build lldb-server when an lldb target is being built.
295-
if (CMAKE_SYSTEM_NAME MATCHES "Android|Darwin|FreeBSD|Linux|NetBSD|Windows")
295+
if (CMAKE_SYSTEM_NAME MATCHES "Android|Darwin|FreeBSD|Linux|NetBSD|OpenBSD|Windows")
296296
set(LLDB_CAN_USE_LLDB_SERVER ON)
297297
else()
298298
set(LLDB_CAN_USE_LLDB_SERVER OFF)

lldb/source/Initialization/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if ( CMAKE_SYSTEM_NAME MATCHES "Linux|Android|FreeBSD|NetBSD" )
1+
if ( CMAKE_SYSTEM_NAME MATCHES "Linux|Android|FreeBSD|NetBSD|OpenBSD" )
22
list(APPEND EXTRA_PLUGINS lldbPluginProcessPOSIX)
33
endif()
44

lldb/source/Plugins/ABI/X86/ABISysV_x86_64.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ ABISysV_x86_64::CreateInstance(lldb::ProcessSP process_sp, const ArchSpec &arch)
9595
case llvm::Triple::OSType::Linux:
9696
case llvm::Triple::OSType::MacOSX:
9797
case llvm::Triple::OSType::NetBSD:
98+
case llvm::Triple::OSType::OpenBSD:
9899
case llvm::Triple::OSType::Solaris:
99100
case llvm::Triple::OSType::UnknownOS:
100101
return ABISP(

lldb/source/Plugins/Process/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
77
elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
88
add_subdirectory(NetBSD)
99
add_subdirectory(POSIX)
10+
elseif (CMAKE_SYSTEM_NAME MATCHES "OpenBSD")
11+
add_subdirectory(POSIX)
1012
elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
1113
add_subdirectory(Windows/Common)
1214
elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")

0 commit comments

Comments
 (0)