summaryrefslogtreecommitdiff
path: root/gnu/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/clang/Makefile3
-rw-r--r--gnu/usr.bin/clang/liblldbPluginProcess/Makefile14
-rw-r--r--gnu/usr.bin/clang/lldb-server/Makefile81
3 files changed, 95 insertions, 3 deletions
diff --git a/gnu/usr.bin/clang/Makefile b/gnu/usr.bin/clang/Makefile
index 13656a7cf6d..7774de69a80 100644
--- a/gnu/usr.bin/clang/Makefile
+++ b/gnu/usr.bin/clang/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.11 2019/03/05 09:44:38 jsg Exp $
+# $OpenBSD: Makefile,v 1.12 2019/11/09 16:45:48 mortimer Exp $
.include <bsd.own.mk>
@@ -87,6 +87,7 @@ SUBDIR+=liblldbTarget
SUBDIR+=liblldbUtility
SUBDIR+=lldb
+SUBDIR+=lldb-server
.include <bsd.obj.mk>
.include <bsd.subdir.mk>
diff --git a/gnu/usr.bin/clang/liblldbPluginProcess/Makefile b/gnu/usr.bin/clang/liblldbPluginProcess/Makefile
index a06e216090b..acbb117b1d1 100644
--- a/gnu/usr.bin/clang/liblldbPluginProcess/Makefile
+++ b/gnu/usr.bin/clang/liblldbPluginProcess/Makefile
@@ -1,11 +1,12 @@
-# $OpenBSD: Makefile,v 1.3 2019/06/23 22:07:44 patrick Exp $
+# $OpenBSD: Makefile,v 1.4 2019/11/09 16:45:48 mortimer Exp $
LIB= lldbPluginProcess
NOPIC=
NOPROFILE=
.include <bsd.own.mk>
-SRCS= DynamicRegisterInfo.cpp \
+SRCS= CrashReason.cpp \
+ DynamicRegisterInfo.cpp \
FreeBSDSignals.cpp \
GDBRemoteClientBase.cpp \
GDBRemoteCommunication.cpp \
@@ -13,6 +14,7 @@ SRCS= DynamicRegisterInfo.cpp \
GDBRemoteCommunicationHistory.cpp \
GDBRemoteCommunicationReplayServer.cpp \
GDBRemoteCommunicationServer.cpp \
+ GDBRemoteCommunicationServerCommon.cpp \
GDBRemoteCommunicationServerLLGS.cpp \
GDBRemoteCommunicationServerPlatform.cpp \
GDBRemoteRegisterContext.cpp \
@@ -25,13 +27,19 @@ SRCS= DynamicRegisterInfo.cpp \
MinidumpParser.cpp \
MinidumpTypes.cpp \
MipsLinuxSignals.cpp \
+ NativeProcessOpenBSD.cpp \
+ NativeRegisterContextOpenBSD.cpp \
+ NativeRegisterContextOpenBSD_x86_64.cpp \
NativeRegisterContextRegisterInfo.cpp \
+ NativeThreadOpenBSD.cpp \
NetBSDSignals.cpp \
ProcessElfCore.cpp \
ProcessGDBRemote.cpp \
ProcessGDBRemoteLog.cpp \
ProcessMachCore.cpp \
+ ProcessMessage.cpp \
ProcessMinidump.cpp \
+ ProcessPOSIXLog.cpp \
RegisterContextDarwin_arm.cpp \
RegisterContextDarwin_arm64.cpp \
RegisterContextDarwin_i386.cpp \
@@ -93,6 +101,8 @@ SRCS= DynamicRegisterInfo.cpp \
.PATH: ${.CURDIR}/../../../llvm/tools/lldb/source/Plugins/Process/gdb-remote
.PATH: ${.CURDIR}/../../../llvm/tools/lldb/source/Plugins/Process/mach-core
.PATH: ${.CURDIR}/../../../llvm/tools/lldb/source/Plugins/Process/minidump
+.PATH: ${.CURDIR}/../../../llvm/tools/lldb/source/Plugins/Process/POSIX
+.PATH: ${.CURDIR}/../../../llvm/tools/lldb/source/Plugins/Process/OpenBSD
install:
@# Nothing here so far ...
diff --git a/gnu/usr.bin/clang/lldb-server/Makefile b/gnu/usr.bin/clang/lldb-server/Makefile
new file mode 100644
index 00000000000..2e1c46ef1bd
--- /dev/null
+++ b/gnu/usr.bin/clang/lldb-server/Makefile
@@ -0,0 +1,81 @@
+# $OpenBSD: Makefile,v 1.1 2019/11/09 16:45:48 mortimer Exp $
+
+.include <bsd.own.mk>
+
+NOPROG= lldb-server
+BINDIR= /usr/bin
+NOMAN=
+
+SRCS= Acceptor.cpp \
+ LLDBServerUtilities.cpp \
+ SystemInitializerLLGS.cpp \
+ lldb-platform.cpp \
+ lldb-gdbserver.cpp \
+ lldb-server.cpp \
+ lldb.cpp \
+
+LDADD+= -lcurses -ledit -lpanel
+
+
+.PATH: ${.CURDIR}/../../../llvm/tools/lldb/source
+.PATH: ${.CURDIR}/../../../llvm/tools/lldb/tools/lldb-server
+
+LLVM_LIBDEPS= clangAST \
+ clangAnalysis \
+ clangBasic \
+ clangBasicTargets \
+ clangCodeGen \
+ clangDriver \
+ clangDriverArch \
+ clangEdit \
+ clangFrontend \
+ clangLex \
+ clangParse \
+ clangRewrite \
+ clangRewriteFrontend \
+ clangSema \
+ clangSerialization \
+ lldbABI \
+ lldbAPI \
+ lldbBreakpoint \
+ lldbCommands \
+ lldbCore \
+ lldbDataFormatters \
+ lldbExpression \
+ lldbHostCommon \
+ lldbHostOpenBSD \
+ lldbHostPOSIX \
+ lldbInitialization \
+ lldbInterpreter \
+ lldbPluginArchitecture \
+ lldbPluginDisassembler \
+ lldbPluginDynamicLoader \
+ lldbPluginExpressionParser \
+ lldbPluginInstruction \
+ lldbPluginInstrumentationRuntime \
+ lldbPluginJITLoader \
+ lldbPluginLanguage \
+ lldbPluginLanguageRuntime \
+ lldbPluginMemoryHistory \
+ lldbPluginObjectContainer \
+ lldbPluginObjectFile \
+ lldbPluginOperatingSystem \
+ lldbPluginPlatform \
+ lldbPluginProcess \
+ lldbPluginScriptInterpreter \
+ lldbPluginStructuredData \
+ lldbPluginSymbolFile \
+ lldbPluginSymbolVendor \
+ lldbPluginSystemRuntime \
+ lldbPluginUnwindAssembly \
+ lldbSymbol \
+ lldbTarget \
+ lldbUtility
+
+
+LDADD+= -L ${.OBJDIR}/../libLLVM -lLLVM
+
+.include <bsd.prog.mk>
+
+CPPFLAGS+= ${LLDB_INCLUDES} \
+ ${CLANG_INCLUDES}