pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lldb: update for llvm-14



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Thu Aug 4 09:13:47 2022 +0200
Changeset:	5eedaa892d5ccb3e23b76659446aa4e7626678dc

Added Files:
	lldb/DESCR
	lldb/Makefile
	lldb/PLIST
	lldb/PLIST.Darwin
	lldb/PLIST.Linux
	lldb/TODO
	lldb/buildlink3.mk
	lldb/distinfo
	lldb/patches/patch-cmake_modules_LLDBStandalone.cmake
	lldb/patches/patch-source_API_CMakeLists.txt
	lldb/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp

Log Message:
lldb: update for llvm-14

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=5eedaa892d5ccb3e23b76659446aa4e7626678dc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 lldb/DESCR                                         |   1 +
 lldb/Makefile                                      |  94 ++++
 lldb/PLIST                                         | 532 +++++++++++++++++++++
 lldb/PLIST.Darwin                                  |  11 +
 lldb/PLIST.Linux                                   |   3 +
 lldb/TODO                                          |  17 +
 lldb/buildlink3.mk                                 |  18 +
 lldb/distinfo                                      |   8 +
 .../patch-cmake_modules_LLDBStandalone.cmake       |  12 +
 lldb/patches/patch-source_API_CMakeLists.txt       |  17 +
 ..._Plugins_Process_NetBSD_NativeProcessNetBSD.cpp |  54 +++
 11 files changed, 767 insertions(+)

diffs:
diff --git a/lldb/DESCR b/lldb/DESCR
new file mode 100644
index 0000000000..2a231b41a0
--- /dev/null
+++ b/lldb/DESCR
@@ -0,0 +1 @@
+Next generation, high-performance debugger
diff --git a/lldb/Makefile b/lldb/Makefile
new file mode 100644
index 0000000000..aa9044cef8
--- /dev/null
+++ b/lldb/Makefile
@@ -0,0 +1,94 @@
+# $NetBSD: Makefile,v 1.37 2022/06/30 11:18:16 nia Exp $
+
+.include "../../wip/llvm/version.mk"
+
+DISTNAME=	lldb-${LLVM_VERSION}.src
+PKGNAME=	${DISTNAME:S/.src//}
+CATEGORIES=	devel lang
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://lldb.org/
+COMMENT=	Next generation, high-performance debugger
+LICENSE=	apache-2.0
+
+DEPENDS+=	llvm-${PKGVERSION_NOREV}{,nb*}:../../wip/llvm
+DEPENDS+=	clang-${PKGVERSION_NOREV}{,nb*}:../../wip/clang
+DEPENDS+=	swig3>=3.0:../../devel/swig3
+DEPENDS+=	${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+
+CONFIGURE_DIRS=		${WRKDIR}/build
+CMAKE_ARG_PATH=		${WRKSRC}
+
+USE_CMAKE=		yes
+USE_LANGUAGES=		c c++14
+GCC_REQD+=		4.8
+PY_PATCHPLIST=		yes
+
+CMAKE_ARGS+=	-DLLVM_CONFIG=${LLVM_CONFIG_PATH}
+CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+=	-DCMAKE_C_COMPILER=${CC:Q}
+CMAKE_ARGS+=	-DCMAKE_CXX_COMPILER=${CXX:Q}
+CMAKE_ARGS+=	-DHAVE_CXX_ATOMICS64_WITHOUT_LIB=ON
+CMAKE_ARGS+=	-DLLDB_CODESIGN_IDENTITY=""
+CMAKE_ARGS+=	-DLLDB_USE_SYSTEM_SIX=ON
+CMAKE_ARGS+=	-DPYTHON_HOME=${PREFIX}
+
+CHECK_PORTABILITY_SKIP=	utils/buildit/build_llvm
+
+LUA_VERSIONS_ACCEPTED=	53
+
+REPLACE_PERL+=		*.pl
+REPLACE_PERL+=		*/*.pl
+REPLACE_PERL+=		*/*/*.pl
+REPLACE_PERL+=		*/*/*/*.pl
+REPLACE_PERL+=		*/*/*/*/*.pl
+REPLACE_PERL+=		*/*/*/*/*/*.pl
+REPLACE_PERL+=		scripts/sed-sources
+
+REPLACE_PYTHON+=	*.py
+REPLACE_PYTHON+=	*/*.py
+REPLACE_PYTHON+=	*/*/*.py
+REPLACE_PYTHON+=	*/*/*/*.py
+REPLACE_PYTHON+=	*/*/*/*/*.py
+REPLACE_PYTHON+=	*/*/*/*/*/*.py
+REPLACE_PYTHON+=	*/*/*/*/*/*/*.py
+REPLACE_PYTHON+=	*/*/*/*/*/*/*/*.py
+REPLACE_PYTHON+=	scripts/shush
+
+TEST_TARGET=		check-lldb
+#TEST_TARGET=		check-lldb-unit # doesn't work in standalone build
+#TEST_TARGET=		check-lldb-single # check-lldb -j1
+#TEST_TARGET=		check-lldb-expr # unknown
+TEST_ENV+=		LD_LIBRARY_PATH=${WRKDIR}/build/lib
+
+.include "../../mk/bsd.prefs.mk"
+
+PLIST_VARS+=	posix
+.if ${OPSYS} != "Darwin"
+PLIST.posix=	yes
+.endif
+
+.if ${OPSYS} == "NetBSD"
+.  if exists(/usr/include/panel.h)
+CMAKE_ARGS+=	-DLLDB_DISABLE_CURSES:BOOL=FALSE
+.  else
+CMAKE_ARGS+=	-DLLDB_DISABLE_CURSES:BOOL=TRUE
+.  endif
+.endif
+
+post-extract:
+	${MKDIR} ${WRKDIR}/build
+
+#.include "../../devel/googletest/buildlink3.mk" # check-lldb-unit
+.include "../../devel/libatomic_ops/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../wip/clang/buildlink3.mk"
+.include "../../wip/llvm/buildlink3.mk"
+.include "../../lang/lua/buildlink3.mk"
+.include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
+.include "../../lang/python/tool.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/curses.buildlink3.mk"
+.include "../../mk/readline.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lldb/PLIST b/lldb/PLIST
new file mode 100644
index 0000000000..188d4b0266
--- /dev/null
+++ b/lldb/PLIST
@@ -0,0 +1,532 @@
+@comment $NetBSD: PLIST,v 1.14 2021/11/23 20:55:42 wiz Exp $
+bin/lldb
+bin/lldb-argdumper
+bin/lldb-instr
+bin/lldb-server
+bin/lldb-vscode
+include/lldb/API/LLDB.h
+include/lldb/API/SBAddress.h
+include/lldb/API/SBAttachInfo.h
+include/lldb/API/SBBlock.h
+include/lldb/API/SBBreakpoint.h
+include/lldb/API/SBBreakpointLocation.h
+include/lldb/API/SBBreakpointName.h
+include/lldb/API/SBBroadcaster.h
+include/lldb/API/SBCommandInterpreter.h
+include/lldb/API/SBCommandInterpreterRunOptions.h
+include/lldb/API/SBCommandReturnObject.h
+include/lldb/API/SBCommunication.h
+include/lldb/API/SBCompileUnit.h
+include/lldb/API/SBData.h
+include/lldb/API/SBDebugger.h
+include/lldb/API/SBDeclaration.h
+include/lldb/API/SBDefines.h
+include/lldb/API/SBEnvironment.h
+include/lldb/API/SBError.h
+include/lldb/API/SBEvent.h
+include/lldb/API/SBExecutionContext.h
+include/lldb/API/SBExpressionOptions.h
+include/lldb/API/SBFile.h
+include/lldb/API/SBFileSpec.h
+include/lldb/API/SBFileSpecList.h
+include/lldb/API/SBFrame.h
+include/lldb/API/SBFunction.h
+include/lldb/API/SBHostOS.h
+include/lldb/API/SBInstruction.h
+include/lldb/API/SBInstructionList.h
+include/lldb/API/SBLanguageRuntime.h
+include/lldb/API/SBLaunchInfo.h
+include/lldb/API/SBLineEntry.h
+include/lldb/API/SBListener.h
+include/lldb/API/SBMemoryRegionInfo.h
+include/lldb/API/SBMemoryRegionInfoList.h
+include/lldb/API/SBModule.h
+include/lldb/API/SBModuleSpec.h
+include/lldb/API/SBPlatform.h
+include/lldb/API/SBProcess.h
+include/lldb/API/SBProcessInfo.h
+include/lldb/API/SBQueue.h
+include/lldb/API/SBQueueItem.h
+include/lldb/API/SBReproducer.h
+include/lldb/API/SBSection.h
+include/lldb/API/SBSourceManager.h
+include/lldb/API/SBStream.h
+include/lldb/API/SBStringList.h
+include/lldb/API/SBStructuredData.h
+include/lldb/API/SBSymbol.h
+include/lldb/API/SBSymbolContext.h
+include/lldb/API/SBSymbolContextList.h
+include/lldb/API/SBTarget.h
+include/lldb/API/SBThread.h
+include/lldb/API/SBThreadCollection.h
+include/lldb/API/SBThreadPlan.h
+include/lldb/API/SBTrace.h
+include/lldb/API/SBType.h
+include/lldb/API/SBTypeCategory.h
+include/lldb/API/SBTypeEnumMember.h
+include/lldb/API/SBTypeFilter.h
+include/lldb/API/SBTypeFormat.h
+include/lldb/API/SBTypeNameSpecifier.h
+include/lldb/API/SBTypeSummary.h
+include/lldb/API/SBTypeSynthetic.h
+include/lldb/API/SBUnixSignals.h
+include/lldb/API/SBValue.h
+include/lldb/API/SBValueList.h
+include/lldb/API/SBVariablesOptions.h
+include/lldb/API/SBWatchpoint.h
+include/lldb/Breakpoint/Breakpoint.h
+include/lldb/Breakpoint/BreakpointID.h
+include/lldb/Breakpoint/BreakpointIDList.h
+include/lldb/Breakpoint/BreakpointList.h
+include/lldb/Breakpoint/BreakpointLocation.h
+include/lldb/Breakpoint/BreakpointLocationCollection.h
+include/lldb/Breakpoint/BreakpointLocationList.h
+include/lldb/Breakpoint/BreakpointName.h
+include/lldb/Breakpoint/BreakpointOptions.h
+include/lldb/Breakpoint/BreakpointPrecondition.h
+include/lldb/Breakpoint/BreakpointResolver.h
+include/lldb/Breakpoint/BreakpointResolverAddress.h
+include/lldb/Breakpoint/BreakpointResolverFileLine.h
+include/lldb/Breakpoint/BreakpointResolverFileRegex.h
+include/lldb/Breakpoint/BreakpointResolverName.h
+include/lldb/Breakpoint/BreakpointResolverScripted.h
+include/lldb/Breakpoint/BreakpointSite.h
+include/lldb/Breakpoint/BreakpointSiteList.h
+include/lldb/Breakpoint/Stoppoint.h
+include/lldb/Breakpoint/StoppointCallbackContext.h
+include/lldb/Breakpoint/StoppointHitCounter.h
+include/lldb/Breakpoint/StoppointSite.h
+include/lldb/Breakpoint/Watchpoint.h
+include/lldb/Breakpoint/WatchpointList.h
+include/lldb/Breakpoint/WatchpointOptions.h
+include/lldb/Core/Address.h
+include/lldb/Core/AddressRange.h
+include/lldb/Core/AddressResolver.h
+include/lldb/Core/AddressResolverFileLine.h
+include/lldb/Core/Architecture.h
+include/lldb/Core/Communication.h
+include/lldb/Core/Debugger.h
+include/lldb/Core/Declaration.h
+include/lldb/Core/Disassembler.h
+include/lldb/Core/DumpDataExtractor.h
+include/lldb/Core/DumpRegisterValue.h
+include/lldb/Core/EmulateInstruction.h
+include/lldb/Core/FileLineResolver.h
+include/lldb/Core/FileSpecList.h
+include/lldb/Core/FormatEntity.h
+include/lldb/Core/Highlighter.h
+include/lldb/Core/IOHandler.h
+include/lldb/Core/IOHandlerCursesGUI.h
+include/lldb/Core/IOStreamMacros.h
+include/lldb/Core/LoadedModuleInfoList.h
+include/lldb/Core/Mangled.h
+include/lldb/Core/MappedHash.h
+include/lldb/Core/Module.h
+include/lldb/Core/ModuleChild.h
+include/lldb/Core/ModuleList.h
+include/lldb/Core/ModuleSpec.h
+include/lldb/Core/Opcode.h
+include/lldb/Core/PluginInterface.h
+include/lldb/Core/PluginManager.h
+include/lldb/Core/Progress.h
+include/lldb/Core/RichManglingContext.h
+include/lldb/Core/SearchFilter.h
+include/lldb/Core/Section.h
+include/lldb/Core/SourceLocationSpec.h
+include/lldb/Core/SourceManager.h
+include/lldb/Core/StreamAsynchronousIO.h
+include/lldb/Core/StreamBuffer.h
+include/lldb/Core/StreamFile.h
+include/lldb/Core/StructuredDataImpl.h
+include/lldb/Core/ThreadSafeDenseMap.h
+include/lldb/Core/ThreadSafeDenseSet.h
+include/lldb/Core/ThreadSafeValue.h
+include/lldb/Core/UniqueCStringMap.h
+include/lldb/Core/UserSettingsController.h
+include/lldb/Core/Value.h
+include/lldb/Core/ValueObject.h
+include/lldb/Core/ValueObjectCast.h
+include/lldb/Core/ValueObjectChild.h
+include/lldb/Core/ValueObjectConstResult.h
+include/lldb/Core/ValueObjectConstResultCast.h
+include/lldb/Core/ValueObjectConstResultChild.h
+include/lldb/Core/ValueObjectConstResultImpl.h
+include/lldb/Core/ValueObjectDynamicValue.h
+include/lldb/Core/ValueObjectList.h
+include/lldb/Core/ValueObjectMemory.h
+include/lldb/Core/ValueObjectRegister.h
+include/lldb/Core/ValueObjectSyntheticFilter.h
+include/lldb/Core/ValueObjectUpdater.h
+include/lldb/Core/ValueObjectVariable.h
+include/lldb/Core/dwarf.h
+include/lldb/DataFormatters/CXXFunctionPointer.h
+include/lldb/DataFormatters/DataVisualization.h
+include/lldb/DataFormatters/DumpValueObjectOptions.h
+include/lldb/DataFormatters/FormatCache.h
+include/lldb/DataFormatters/FormatClasses.h
+include/lldb/DataFormatters/FormatManager.h
+include/lldb/DataFormatters/FormattersContainer.h
+include/lldb/DataFormatters/FormattersHelpers.h
+include/lldb/DataFormatters/LanguageCategory.h
+include/lldb/DataFormatters/StringPrinter.h
+include/lldb/DataFormatters/TypeCategory.h
+include/lldb/DataFormatters/TypeCategoryMap.h
+include/lldb/DataFormatters/TypeFormat.h
+include/lldb/DataFormatters/TypeSummary.h
+include/lldb/DataFormatters/TypeSynthetic.h
+include/lldb/DataFormatters/ValueObjectPrinter.h
+include/lldb/DataFormatters/VectorIterator.h
+include/lldb/DataFormatters/VectorType.h
+include/lldb/Expression/DWARFExpression.h
+include/lldb/Expression/DiagnosticManager.h
+include/lldb/Expression/DynamicCheckerFunctions.h
+include/lldb/Expression/Expression.h
+include/lldb/Expression/ExpressionParser.h
+include/lldb/Expression/ExpressionSourceCode.h
+include/lldb/Expression/ExpressionTypeSystemHelper.h
+include/lldb/Expression/ExpressionVariable.h
+include/lldb/Expression/FunctionCaller.h
+include/lldb/Expression/IRExecutionUnit.h
+include/lldb/Expression/IRInterpreter.h
+include/lldb/Expression/IRMemoryMap.h
+include/lldb/Expression/LLVMUserExpression.h
+include/lldb/Expression/Materializer.h
+include/lldb/Expression/REPL.h
+include/lldb/Expression/UserExpression.h
+include/lldb/Expression/UtilityFunction.h
+include/lldb/Host/Config.h
+include/lldb/Host/ConnectionFileDescriptor.h
+include/lldb/Host/Debug.h
+include/lldb/Host/Editline.h
+include/lldb/Host/File.h
+include/lldb/Host/FileAction.h
+include/lldb/Host/FileCache.h
+include/lldb/Host/FileSystem.h
+include/lldb/Host/Host.h
+include/lldb/Host/HostGetOpt.h
+include/lldb/Host/HostInfo.h
+include/lldb/Host/HostInfoBase.h
+include/lldb/Host/HostNativeProcess.h
+include/lldb/Host/HostNativeProcessBase.h
+include/lldb/Host/HostNativeThread.h
+include/lldb/Host/HostNativeThreadBase.h
+include/lldb/Host/HostNativeThreadForward.h
+include/lldb/Host/HostProcess.h
+include/lldb/Host/HostThread.h
+include/lldb/Host/LZMA.h
+include/lldb/Host/LockFile.h
+include/lldb/Host/LockFileBase.h
+include/lldb/Host/MainLoop.h
+include/lldb/Host/MainLoopBase.h
+include/lldb/Host/MonitoringProcessLauncher.h
+include/lldb/Host/OptionParser.h
+include/lldb/Host/Pipe.h
+include/lldb/Host/PipeBase.h
+include/lldb/Host/PosixApi.h
+include/lldb/Host/ProcessLaunchInfo.h
+include/lldb/Host/ProcessLauncher.h
+include/lldb/Host/ProcessRunLock.h
+include/lldb/Host/PseudoTerminal.h
+include/lldb/Host/SafeMachO.h
+include/lldb/Host/Socket.h
+include/lldb/Host/SocketAddress.h
+include/lldb/Host/StringConvert.h
+include/lldb/Host/Terminal.h
+include/lldb/Host/ThreadLauncher.h
+include/lldb/Host/Time.h
+include/lldb/Host/XML.h
+include/lldb/Host/android/HostInfoAndroid.h
+include/lldb/Host/common/GetOptInc.h
+include/lldb/Host/common/NativeBreakpointList.h
+include/lldb/Host/common/NativeProcessProtocol.h
+include/lldb/Host/common/NativeRegisterContext.h
+include/lldb/Host/common/NativeThreadProtocol.h
+include/lldb/Host/common/NativeWatchpointList.h
+include/lldb/Host/common/TCPSocket.h
+include/lldb/Host/common/UDPSocket.h
+include/lldb/Host/freebsd/HostInfoFreeBSD.h
+include/lldb/Host/linux/AbstractSocket.h
+include/lldb/Host/linux/Host.h
+include/lldb/Host/linux/HostInfoLinux.h
+include/lldb/Host/linux/Ptrace.h
+include/lldb/Host/linux/Support.h
+include/lldb/Host/linux/Uio.h
+include/lldb/Host/macosx/HostInfoMacOSX.h
+include/lldb/Host/macosx/HostThreadMacOSX.h
+include/lldb/Host/netbsd/HostInfoNetBSD.h
+include/lldb/Host/openbsd/HostInfoOpenBSD.h
+include/lldb/Host/posix/ConnectionFileDescriptorPosix.h
+include/lldb/Host/posix/DomainSocket.h
+include/lldb/Host/posix/Fcntl.h
+include/lldb/Host/posix/HostInfoPosix.h
+include/lldb/Host/posix/HostProcessPosix.h
+include/lldb/Host/posix/HostThreadPosix.h
+include/lldb/Host/posix/LockFilePosix.h
+include/lldb/Host/posix/PipePosix.h
+include/lldb/Host/posix/ProcessLauncherPosixFork.h
+include/lldb/Host/windows/AutoHandle.h
+include/lldb/Host/windows/ConnectionGenericFileWindows.h
+include/lldb/Host/windows/HostInfoWindows.h
+include/lldb/Host/windows/HostProcessWindows.h
+include/lldb/Host/windows/HostThreadWindows.h
+include/lldb/Host/windows/LockFileWindows.h
+include/lldb/Host/windows/PipeWindows.h
+include/lldb/Host/windows/PosixApi.h
+include/lldb/Host/windows/ProcessLauncherWindows.h
+include/lldb/Host/windows/windows.h
+include/lldb/Initialization/SystemInitializer.h
+include/lldb/Initialization/SystemInitializerCommon.h
+include/lldb/Initialization/SystemLifetimeManager.h
+include/lldb/Interpreter/CommandAlias.h
+include/lldb/Interpreter/CommandCompletions.h
+include/lldb/Interpreter/CommandHistory.h
+include/lldb/Interpreter/CommandInterpreter.h
+include/lldb/Interpreter/CommandObject.h
+include/lldb/Interpreter/CommandObjectMultiword.h
+include/lldb/Interpreter/CommandOptionValidators.h
+include/lldb/Interpreter/CommandReturnObject.h
+include/lldb/Interpreter/OptionArgParser.h
+include/lldb/Interpreter/OptionGroupArchitecture.h
+include/lldb/Interpreter/OptionGroupBoolean.h
+include/lldb/Interpreter/OptionGroupFile.h
+include/lldb/Interpreter/OptionGroupFormat.h
+include/lldb/Interpreter/OptionGroupOutputFile.h
+include/lldb/Interpreter/OptionGroupPlatform.h
+include/lldb/Interpreter/OptionGroupPythonClassWithDict.h
+include/lldb/Interpreter/OptionGroupString.h
+include/lldb/Interpreter/OptionGroupUInt64.h
+include/lldb/Interpreter/OptionGroupUUID.h
+include/lldb/Interpreter/OptionGroupValueObjectDisplay.h
+include/lldb/Interpreter/OptionGroupVariable.h
+include/lldb/Interpreter/OptionGroupWatchpoint.h
+include/lldb/Interpreter/OptionValue.h
+include/lldb/Interpreter/OptionValueArch.h
+include/lldb/Interpreter/OptionValueArgs.h
+include/lldb/Interpreter/OptionValueArray.h
+include/lldb/Interpreter/OptionValueBoolean.h
+include/lldb/Interpreter/OptionValueChar.h
+include/lldb/Interpreter/OptionValueDictionary.h
+include/lldb/Interpreter/OptionValueEnumeration.h
+include/lldb/Interpreter/OptionValueFileColonLine.h
+include/lldb/Interpreter/OptionValueFileSpec.h
+include/lldb/Interpreter/OptionValueFileSpecList.h
+include/lldb/Interpreter/OptionValueFormat.h
+include/lldb/Interpreter/OptionValueFormatEntity.h
+include/lldb/Interpreter/OptionValueLanguage.h
+include/lldb/Interpreter/OptionValuePathMappings.h
+include/lldb/Interpreter/OptionValueProperties.h
+include/lldb/Interpreter/OptionValueRegex.h
+include/lldb/Interpreter/OptionValueSInt64.h
+include/lldb/Interpreter/OptionValueString.h
+include/lldb/Interpreter/OptionValueUInt64.h
+include/lldb/Interpreter/OptionValueUUID.h
+include/lldb/Interpreter/OptionValues.h
+include/lldb/Interpreter/Options.h
+include/lldb/Interpreter/Property.h
+include/lldb/Interpreter/ScriptInterpreter.h
+include/lldb/Interpreter/ScriptedProcessInterface.h
+include/lldb/Symbol/ArmUnwindInfo.h
+include/lldb/Symbol/Block.h
+include/lldb/Symbol/CallFrameInfo.h
+include/lldb/Symbol/CompactUnwindInfo.h
+include/lldb/Symbol/CompileUnit.h
+include/lldb/Symbol/CompilerDecl.h
+include/lldb/Symbol/CompilerDeclContext.h
+include/lldb/Symbol/CompilerType.h
+include/lldb/Symbol/DWARFCallFrameInfo.h
+include/lldb/Symbol/DebugMacros.h
+include/lldb/Symbol/DeclVendor.h
+include/lldb/Symbol/FuncUnwinders.h
+include/lldb/Symbol/Function.h
+include/lldb/Symbol/LineEntry.h
+include/lldb/Symbol/LineTable.h
+include/lldb/Symbol/LocateSymbolFile.h
+include/lldb/Symbol/ObjectContainer.h
+include/lldb/Symbol/ObjectFile.h
+include/lldb/Symbol/PostfixExpression.h
+include/lldb/Symbol/SourceModule.h
+include/lldb/Symbol/Symbol.h
+include/lldb/Symbol/SymbolContext.h
+include/lldb/Symbol/SymbolContextScope.h
+include/lldb/Symbol/SymbolFile.h
+include/lldb/Symbol/SymbolVendor.h
+include/lldb/Symbol/Symtab.h
+include/lldb/Symbol/TaggedASTType.h
+include/lldb/Symbol/Type.h
+include/lldb/Symbol/TypeList.h
+include/lldb/Symbol/TypeMap.h
+include/lldb/Symbol/TypeSystem.h
+include/lldb/Symbol/UnwindPlan.h
+include/lldb/Symbol/UnwindTable.h
+include/lldb/Symbol/Variable.h
+include/lldb/Symbol/VariableList.h
+include/lldb/Target/ABI.h
+include/lldb/Target/AssertFrameRecognizer.h
+include/lldb/Target/DynamicLoader.h
+include/lldb/Target/ExecutionContext.h
+include/lldb/Target/ExecutionContextScope.h
+include/lldb/Target/InstrumentationRuntime.h
+include/lldb/Target/InstrumentationRuntimeStopInfo.h
+include/lldb/Target/JITLoader.h
+include/lldb/Target/JITLoaderList.h
+include/lldb/Target/Language.h
+include/lldb/Target/LanguageRuntime.h
+include/lldb/Target/Memory.h
+include/lldb/Target/MemoryHistory.h
+include/lldb/Target/MemoryRegionInfo.h
+include/lldb/Target/MemoryTagManager.h
+include/lldb/Target/ModuleCache.h
+include/lldb/Target/OperatingSystem.h
+include/lldb/Target/PathMappingList.h
+include/lldb/Target/Platform.h
+include/lldb/Target/PostMortemProcess.h
+include/lldb/Target/Process.h
+include/lldb/Target/ProcessStructReader.h
+include/lldb/Target/ProcessTrace.h
+include/lldb/Target/Queue.h
+include/lldb/Target/QueueItem.h
+include/lldb/Target/QueueList.h
+include/lldb/Target/RegisterCheckpoint.h
+include/lldb/Target/RegisterContext.h
+include/lldb/Target/RegisterContextUnwind.h
+include/lldb/Target/RegisterNumber.h
+include/lldb/Target/RemoteAwarePlatform.h
+include/lldb/Target/Runtime.h
+include/lldb/Target/SectionLoadHistory.h
+include/lldb/Target/SectionLoadList.h
+include/lldb/Target/StackFrame.h
+include/lldb/Target/StackFrameList.h
+include/lldb/Target/StackFrameRecognizer.h
+include/lldb/Target/StackID.h
+include/lldb/Target/StopInfo.h
+include/lldb/Target/StructuredDataPlugin.h
+include/lldb/Target/SystemRuntime.h
+include/lldb/Target/Target.h
+include/lldb/Target/TargetList.h
+include/lldb/Target/Thread.h
+include/lldb/Target/ThreadCollection.h
+include/lldb/Target/ThreadList.h
+include/lldb/Target/ThreadPlan.h
+include/lldb/Target/ThreadPlanBase.h
+include/lldb/Target/ThreadPlanCallFunction.h
+include/lldb/Target/ThreadPlanCallFunctionUsingABI.h
+include/lldb/Target/ThreadPlanCallOnFunctionExit.h
+include/lldb/Target/ThreadPlanCallUserExpression.h
+include/lldb/Target/ThreadPlanPython.h
+include/lldb/Target/ThreadPlanRunToAddress.h
+include/lldb/Target/ThreadPlanShouldStopHere.h
+include/lldb/Target/ThreadPlanStack.h
+include/lldb/Target/ThreadPlanStepInRange.h
+include/lldb/Target/ThreadPlanStepInstruction.h
+include/lldb/Target/ThreadPlanStepOut.h
+include/lldb/Target/ThreadPlanStepOverBreakpoint.h
+include/lldb/Target/ThreadPlanStepOverRange.h
+include/lldb/Target/ThreadPlanStepRange.h
+include/lldb/Target/ThreadPlanStepThrough.h
+include/lldb/Target/ThreadPlanStepUntil.h
+include/lldb/Target/ThreadPlanTracer.h
+include/lldb/Target/ThreadSpec.h
+include/lldb/Target/Trace.h
+include/lldb/Target/TraceCursor.h
+include/lldb/Target/TraceExporter.h
+include/lldb/Target/TraceInstructionDumper.h
+include/lldb/Target/UnixSignals.h
+include/lldb/Target/Unwind.h
+include/lldb/Target/UnwindAssembly.h
+include/lldb/Target/UnwindLLDB.h
+include/lldb/Utility/AnsiTerminal.h
+include/lldb/Utility/ArchSpec.h
+include/lldb/Utility/Args.h
+include/lldb/Utility/Baton.h
+include/lldb/Utility/Broadcaster.h
+include/lldb/Utility/Cloneable.h
+include/lldb/Utility/CompletionRequest.h
+include/lldb/Utility/Connection.h
+include/lldb/Utility/ConstString.h
+include/lldb/Utility/DataBuffer.h
+include/lldb/Utility/DataBufferHeap.h
+include/lldb/Utility/DataBufferLLVM.h
+include/lldb/Utility/DataEncoder.h
+include/lldb/Utility/DataExtractor.h
+include/lldb/Utility/Endian.h
+include/lldb/Utility/Environment.h
+include/lldb/Utility/Event.h
+include/lldb/Utility/FileSpec.h
+include/lldb/Utility/Flags.h
+include/lldb/Utility/GDBRemote.h
+include/lldb/Utility/IOObject.h
+include/lldb/Utility/Iterable.h
+include/lldb/Utility/LLDBAssert.h
+include/lldb/Utility/Listener.h
+include/lldb/Utility/Log.h
+include/lldb/Utility/Logging.h
+include/lldb/Utility/NameMatches.h
+include/lldb/Utility/OptionDefinition.h
+include/lldb/Utility/Predicate.h
+include/lldb/Utility/ProcessInfo.h
+include/lldb/Utility/RangeMap.h
+include/lldb/Utility/RegisterValue.h
+include/lldb/Utility/RegularExpression.h
+include/lldb/Utility/Reproducer.h
+include/lldb/Utility/ReproducerInstrumentation.h
+include/lldb/Utility/ReproducerProvider.h
+include/lldb/Utility/Scalar.h
+include/lldb/Utility/SelectHelper.h
+include/lldb/Utility/SharedCluster.h
+include/lldb/Utility/State.h
+include/lldb/Utility/Status.h
+include/lldb/Utility/Stream.h
+include/lldb/Utility/StreamCallback.h
+include/lldb/Utility/StreamString.h
+include/lldb/Utility/StreamTee.h
+include/lldb/Utility/StringExtractor.h
+include/lldb/Utility/StringExtractorGDBRemote.h
+include/lldb/Utility/StringLexer.h
+include/lldb/Utility/StringList.h
+include/lldb/Utility/StructuredData.h
+include/lldb/Utility/TildeExpressionResolver.h
+include/lldb/Utility/Timeout.h
+include/lldb/Utility/Timer.h
+include/lldb/Utility/TraceGDBRemotePackets.h
+include/lldb/Utility/TraceIntelPTGDBRemotePackets.h
+include/lldb/Utility/UUID.h
+include/lldb/Utility/UnimplementedError.h
+include/lldb/Utility/UriParser.h
+include/lldb/Utility/UserID.h
+include/lldb/Utility/UserIDResolver.h
+include/lldb/Utility/VASPrintf.h
+include/lldb/Utility/VMRange.h
+include/lldb/Utility/XcodeSDK.h
+include/lldb/lldb-defines.h
+include/lldb/lldb-enumerations.h
+include/lldb/lldb-forward.h
+include/lldb/lldb-private-defines.h
+include/lldb/lldb-private-enumerations.h
+include/lldb/lldb-private-forward.h
+include/lldb/lldb-private-interfaces.h
+include/lldb/lldb-private-types.h
+include/lldb/lldb-private.h
+include/lldb/lldb-public.h
+include/lldb/lldb-types.h
+include/lldb/lldb-versioning.h
+lib/liblldb.so
+lib/liblldb.so.13
+lib/liblldb.so.${PKGVERSION}
+${PYSITELIB}/lldb/__init__.py
+${PYSITELIB}/lldb/_lldb.so
+${PYSITELIB}/lldb/embedded_interpreter.py
+${PYSITELIB}/lldb/formatters/Logger.py
+${PYSITELIB}/lldb/formatters/__init__.py
+${PYSITELIB}/lldb/formatters/attrib_fromdict.py
+${PYSITELIB}/lldb/formatters/cache.py
+${PYSITELIB}/lldb/formatters/cpp/__init__.py
+${PYSITELIB}/lldb/formatters/cpp/gnu_libstdcpp.py
+${PYSITELIB}/lldb/formatters/cpp/libcxx.py
+${PYSITELIB}/lldb/formatters/metrics.py
+${PYSITELIB}/lldb/formatters/synth.py
+${PYSITELIB}/lldb/lldb-argdumper
+${PYSITELIB}/lldb/plugins/__init__.py
+${PYSITELIB}/lldb/plugins/scripted_process.py
+${PYSITELIB}/lldb/utils/__init__.py
+${PYSITELIB}/lldb/utils/in_call_stack.py
+${PYSITELIB}/lldb/utils/symbolication.py
diff --git a/lldb/PLIST.Darwin b/lldb/PLIST.Darwin
new file mode 100644
index 0000000000..7dd5ffa0c3
--- /dev/null
+++ b/lldb/PLIST.Darwin
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST.Darwin,v 1.6 2019/10/19 14:01:37 adam Exp $
+bin/darwin-debug
+bin/debugserver
+${PYSITELIB}/lldb/diagnose/__init__.py
+${PYSITELIB}/lldb/diagnose/diagnose_nsstring.py
+${PYSITELIB}/lldb/diagnose/diagnose_unwind.py
+${PYSITELIB}/lldb/macosx/__init__.py
+${PYSITELIB}/lldb/macosx/crashlog.py
+${PYSITELIB}/lldb/macosx/heap.py
+${PYSITELIB}/lldb/macosx/heap/Makefile
+${PYSITELIB}/lldb/macosx/heap/heap_find.cpp
diff --git a/lldb/PLIST.Linux b/lldb/PLIST.Linux
new file mode 100644
index 0000000000..3f27997bde
--- /dev/null
+++ b/lldb/PLIST.Linux
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST.Linux,v 1.1 2021/05/15 08:22:06 nia Exp $
+lib/liblldbIntelFeatures.so
+lib/liblldbIntelFeatures.so.10
diff --git a/lldb/TODO b/lldb/TODO
new file mode 100644
index 0000000000..7246e4e707
--- /dev/null
+++ b/lldb/TODO
@@ -0,0 +1,17 @@
+[ 81%] Building CXX object source/Plugins/Process/elf-core/CMakeFiles/lldbPluginProcessElfCore.dir/RegisterContextPOSIXCore_arm.cpp.o
+At global scope:
+cc1plus: note: unrecognized command-line option '-Wno-vla-extension' may have been intended to silence earlier diagnostics
+cc1plus: note: unrecognized command-line option '-Wno-deprecated-register' may have been intended to silence earlier diagnostics
+--- source/Plugins/Process/NetBSD/CMakeFiles/lldbPluginProcessNetBSD.dir/NativeProcessNetBSD.cpp.o ---
+*** [source/Plugins/Process/NetBSD/CMakeFiles/lldbPluginProcessNetBSD.dir/NativeProcessNetBSD.cpp.o] Error code 1
+
+bmake[2]: stopped in /usr/pkgsrc/wip/lldb/work/build
+1 error
+
+bmake[2]: stopped in /usr/pkgsrc/wip/lldb/work/build
+--- source/Plugins/Process/NetBSD/CMakeFiles/lldbPluginProcessNetBSD.dir/all ---
+*** [source/Plugins/Process/NetBSD/CMakeFiles/lldbPluginProcessNetBSD.dir/all] Error code 2
+
+bmake[1]: stopped in /usr/pkgsrc/wip/lldb/work/build
+A failure has been detected in another branch of the parallel make
+
diff --git a/lldb/buildlink3.mk b/lldb/buildlink3.mk
new file mode 100644
index 0000000000..fc6aed57eb
--- /dev/null
+++ b/lldb/buildlink3.mk
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.13 2022/04/18 19:09:49 adam Exp $
+
+BUILDLINK_TREE+=	lldb
+
+.if !defined(LLDB_BUILDLINK3_MK)
+LLDB_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.lldb+=	lldb>=9.0.1
+BUILDLINK_ABI_DEPENDS.lldb+=	lldb>=13.0.1nb1
+BUILDLINK_PKGSRCDIR.lldb?=	../../devel/lldb
+
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../wip/clang/buildlink3.mk"
+.include "../../wip/llvm/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.endif	# LLDB_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-lldb
diff --git a/lldb/distinfo b/lldb/distinfo
new file mode 100644
index 0000000000..9cecb7cb14
--- /dev/null
+++ b/lldb/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.29 2022/02/03 20:38:40 adam Exp $
+
+BLAKE2s (lldb-14.0.6.src.tar.xz) = 41dcd1742c7b654007d257127a45a41d7c5304dc403913e6ba2129bb98ed77f1
+SHA512 (lldb-14.0.6.src.tar.xz) = 3fd616f2c992edfa92c86a38aaaaccdeec1ba34186ec38856c4e543cf41163f366855a8b2a22d09b9f7152041c52ac5963f5986d31b72bcb942661fddad55543
+Size (lldb-14.0.6.src.tar.xz) = 10088312 bytes
+SHA1 (patch-cmake_modules_LLDBStandalone.cmake) = 773d420c3fd2c9b4af6af9d42c5778e96a1ae52b
+SHA1 (patch-source_API_CMakeLists.txt) = 23a7b24632f937a4541863aff6a7591255cafe40
+SHA1 (patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp) = 15c6d8399198de567b4e901533e1b1f77d9e348f
diff --git a/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake b/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake
new file mode 100644
index 0000000000..e536f81152
--- /dev/null
+++ b/lldb/patches/patch-cmake_modules_LLDBStandalone.cmake
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- cmake/modules/LLDBStandalone.cmake.orig	2022-06-22 16:46:24.000000000 +0000
++++ cmake/modules/LLDBStandalone.cmake
+@@ -85,7 +85,6 @@ list(APPEND CMAKE_MODULE_PATH "${LLVM_DI
+ include(AddLLVM)
+ include(TableGen)
+ include(HandleLLVMOptions)
+-include(CheckAtomic)
+ include(LLVMDistributionSupport)
+ 
+ set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
diff --git a/lldb/patches/patch-source_API_CMakeLists.txt b/lldb/patches/patch-source_API_CMakeLists.txt
new file mode 100644
index 0000000000..16a63345d1
--- /dev/null
+++ b/lldb/patches/patch-source_API_CMakeLists.txt
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Fix finding libxml2's includes.
+
+--- source/API/CMakeLists.txt.orig	2022-06-22 16:46:24.000000000 +0000
++++ source/API/CMakeLists.txt
+@@ -15,6 +15,10 @@ if(LLDB_ENABLE_LUA)
+   set(lldb_lua_wrapper ${lua_bindings_dir}/LLDBWrapLua.cpp)
+ endif()
+ 
++if(LIBXML2_FOUND)
++  include_directories(SYSTEM ${LIBXML2_INCLUDE_DIR})
++endif()
++
+ add_lldb_library(liblldb SHARED ${option_framework}
+   SBAddress.cpp
+   SBAttachInfo.cpp
diff --git a/lldb/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp b/lldb/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
new file mode 100644
index 0000000000..853e098c2e
--- /dev/null
+++ b/lldb/patches/patch-source_Plugins_Process_NetBSD_NativeProcessNetBSD.cpp
@@ -0,0 +1,54 @@
+$NetBSD$
+
+Provide StopProcess.
+
+--- source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp.orig	2022-06-22 16:46:24.000000000 +0000
++++ source/Plugins/Process/NetBSD/NativeProcessNetBSD.cpp
+@@ -381,6 +381,29 @@ void NativeProcessNetBSD::MonitorSignal(
+   SetState(StateType::eStateStopped, true);
+ }
+ 
++Status NativeProcessNetBSD::StopProcess(lldb::pid_t pid) {
++#ifdef PT_STOP
++  return PtraceWrapper(PT_STOP, pid);
++#else
++  Log *log(ProcessPOSIXLog::GetLogIfAllCategoriesSet(POSIX_LOG_PTRACE));
++  int ret;
++  Status error;
++
++  errno = 0;
++  ret = kill(pid, SIGSTOP);
++
++  if (ret == -1)
++    error.SetErrorToErrno();
++
++  LLDB_LOG(log, "kill({0}, SIGSTOP)", pid);
++
++  if (error.Fail())
++    LLDB_LOG(log, "kill() failed: {0}", error);
++
++  return error;  
++#endif
++}
++
+ Status NativeProcessNetBSD::PtraceWrapper(int req, lldb::pid_t pid, void *addr,
+                                           int data, int *result) {
+   Log *log = GetLog(POSIXLog::Ptrace);
+@@ -533,7 +556,7 @@ Status NativeProcessNetBSD::Resume(const
+   return ret;
+ }
+ 
+-Status NativeProcessNetBSD::Halt() { return PtraceWrapper(PT_STOP, GetID()); }
++Status NativeProcessNetBSD::Halt() { return StopProcess(GetID()); }
+ 
+ Status NativeProcessNetBSD::Detach() {
+   Status error;
+@@ -558,7 +581,7 @@ Status NativeProcessNetBSD::Signal(int s
+ }
+ 
+ Status NativeProcessNetBSD::Interrupt() {
+-  return PtraceWrapper(PT_STOP, GetID());
++  return StopProcess(GetID());
+ }
+ 
+ Status NativeProcessNetBSD::Kill() {


Home | Main Index | Thread Index | Old Index