Reuse appropriate Launch and Attach on NetBSD
Summary: NetBSD ships with NativeProcessNetBSD inherited from NativeProcessProtocol. Link Plugins/Process/gdb-remote with lldbPluginProcessNetBSD in order to resolve correctly the linking to Launch and Attach from the NetBSD plugin. Sponsored by <The NetBSD Foundation> Reviewers: kettenis, labath, emaste, joerg Reviewed By: labath, emaste Subscribers: mgorny, #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D31231 llvm-svn: 298524
This commit is contained in:
parent
a27198853d
commit
26b09b27e5
|
@ -504,7 +504,7 @@ Error NativeProcessProtocol::ResolveProcessArchitecture(lldb::pid_t pid,
|
|||
return Error("failed to retrieve a valid architecture from the exe module");
|
||||
}
|
||||
|
||||
#ifndef __linux__
|
||||
#if !defined(__linux__) && !defined(__NetBSD__)
|
||||
// These need to be implemented to support lldb-gdb-server on a given platform.
|
||||
// Stubs are
|
||||
// provided to make the rest of the code link on non-supported platforms.
|
||||
|
|
|
@ -11,6 +11,10 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux|Android")
|
|||
list(APPEND LLDB_PLUGINS lldbPluginProcessLinux)
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME MATCHES "NetBSD")
|
||||
list(APPEND LLDB_PLUGINS lldbPluginProcessNetBSD)
|
||||
endif()
|
||||
|
||||
add_lldb_library(lldbPluginProcessGDBRemote PLUGIN
|
||||
GDBRemoteClientBase.cpp
|
||||
GDBRemoteCommunication.cpp
|
||||
|
|
Loading…
Reference in New Issue