pkgsrc-WIP-changes archive

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

lldb-netbsd: Drop



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Mon Apr 1 18:44:58 2019 +0200
Changeset:	07370f1551b102173d8496ad463e9a95a6a857de

Removed Files:
	lldb-netbsd/DESCR
	lldb-netbsd/Makefile
	lldb-netbsd/PLIST
	lldb-netbsd/PLIST.Darwin
	lldb-netbsd/TODO
	lldb-netbsd/buildlink3.mk
	lldb-netbsd/distinfo
	lldb-netbsd/patches/patch-source_Plugins_ObjectFile_ELF_ObjectFileELF.cpp
	lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp
	lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_RegisterContextPOSIXCore__arm64.cpp
	lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_RegisterUtilities.h
	lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ThreadElfCore.cpp

Log Message:
lldb-netbsd: Drop

All local patches merged upstream.

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

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

diffstat:
 lldb-netbsd/DESCR                                  |   1 -
 lldb-netbsd/Makefile                               |  97 ----
 lldb-netbsd/PLIST                                  | 522 ---------------------
 lldb-netbsd/PLIST.Darwin                           |  14 -
 lldb-netbsd/TODO                                   |  43 --
 lldb-netbsd/buildlink3.mk                          |  18 -
 lldb-netbsd/distinfo                               |  19 -
 ...source_Plugins_ObjectFile_ELF_ObjectFileELF.cpp |  77 ---
 ...rce_Plugins_Process_elf-core_ProcessElfCore.cpp | 180 -------
 ...ss_elf-core_RegisterContextPOSIXCore__arm64.cpp |  20 -
 ...ce_Plugins_Process_elf-core_RegisterUtilities.h |  62 ---
 ...urce_Plugins_Process_elf-core_ThreadElfCore.cpp |  14 -
 12 files changed, 1067 deletions(-)

diffs:
diff --git a/lldb-netbsd/DESCR b/lldb-netbsd/DESCR
deleted file mode 100644
index 2a231b41a0..0000000000
--- a/lldb-netbsd/DESCR
+++ /dev/null
@@ -1 +0,0 @@
-Next generation, high-performance debugger
diff --git a/lldb-netbsd/Makefile b/lldb-netbsd/Makefile
deleted file mode 100644
index 8f30f9732a..0000000000
--- a/lldb-netbsd/Makefile
+++ /dev/null
@@ -1,97 +0,0 @@
-# $NetBSD: Makefile.common,v 1.7 2015/07/20 05:49:53 adam Exp $
-
-PKGNAME=	lldb-7.0.0
-CATEGORIES=	lang devel
-
-SVN_REPOSITORIES=	lldb
-SVN_REPO.lldb=		http://llvm.org/svn/llvm-project/lldb/trunk
-SVN_REVISION.lldb=	331532
-
-MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=	http://lldb.org/
-COMMENT=	Next generation, high-performance debugger
-LICENSE=	modified-bsd
-
-DEPENDS+=	${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
-
-WRKSRC=			${WRKDIR}/${PKGBASE}
-CONFIGURE_DIRS=		${WRKDIR}/build
-CMAKE_ARG_PATH=		${WRKSRC}
-
-USE_LANGUAGES=		c c++11
-USE_CMAKE=		yes
-GCC_REQD+=		4.8
-PY_PATCHPLIST=		yes
-
-PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36 37 # compilation failure in 3.8.1 (3.8.0 worked)
-
-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_USE_SYSTEM_SIX:BOOL=TRUE
-
-CHECK_PORTABILITY_SKIP=	utils/buildit/build_llvm
-
-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
-
-#_WRAP_EXTRA_ARGS.CXX+=	-fno-omit-frame-pointer -O0 -g -ggdb -U_FORTIFY_SOURCE -fsanitize=address -fsanitize=undefined -lasan -lubsan -U__SANITIZE_ADDRESS__
-#CWRAPPERS_APPEND.cxx+=	-fno-omit-frame-pointer -O0 -g -ggdb -U_FORTIFY_SOURCE -fsanitize=address -fsanitize=undefined -lasan -lubsan -U__SANITIZE_ADDRESS__
-
-post-extract:
-	${RUN} mkdir -p ${WRKDIR}/build
-
-.include "../../wip/mk/svn-package.mk"
-#.include "../../devel/googletest/buildlink3.mk" # check-lldb-unit
-.include "../../devel/libatomic_ops/buildlink3.mk"
-.include "../../devel/swig/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
-#DEPENDS+=	clang-${PKGVERSION_NOREV}{,nb*}:../../wip/clang-netbsd
-#.include "../../wip/clang-netbsd/buildlink3.mk"
-#DEPENDS+=	llvm-${PKGVERSION_NOREV}{,nb*}:../../wip/llvm-netbsd
-#.include "../../wip/llvm-netbsd/buildlink3.mk"
-.include "../../lang/python/application.mk"
-.include "../../lang/python/tool.mk"
-.include "../../lang/python/extension.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-netbsd/PLIST b/lldb-netbsd/PLIST
deleted file mode 100644
index 4b73bc6d14..0000000000
--- a/lldb-netbsd/PLIST
+++ /dev/null
@@ -1,522 +0,0 @@
-@comment $NetBSD$
-bin/lldb
-bin/lldb-argdumper
-bin/lldb-mi
-bin/lldb-server
-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/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/BreakpointSite.h
-include/lldb/Breakpoint/BreakpointSiteList.h
-include/lldb/Breakpoint/Stoppoint.h
-include/lldb/Breakpoint/StoppointCallbackContext.h
-include/lldb/Breakpoint/StoppointLocation.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/AddressResolverName.h
-include/lldb/Core/ArchSpec.h
-include/lldb/Core/Broadcaster.h
-include/lldb/Core/ClangForward.h
-include/lldb/Core/Communication.h
-include/lldb/Core/Debugger.h
-include/lldb/Core/Disassembler.h
-include/lldb/Core/DumpDataExtractor.h
-include/lldb/Core/EmulateInstruction.h
-include/lldb/Core/Event.h
-include/lldb/Core/FileLineResolver.h
-include/lldb/Core/FileSpecList.h
-include/lldb/Core/FormatEntity.h
-include/lldb/Core/IOHandler.h
-include/lldb/Core/IOStreamMacros.h
-include/lldb/Core/Listener.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/RangeMap.h
-include/lldb/Core/RegisterValue.h
-include/lldb/Core/STLUtils.h
-include/lldb/Core/Scalar.h
-include/lldb/Core/SearchFilter.h
-include/lldb/Core/Section.h
-include/lldb/Core/SourceManager.h
-include/lldb/Core/State.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/ThreadSafeSTLMap.h
-include/lldb/Core/ThreadSafeSTLVector.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/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/TypeValidator.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/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/IRDynamicChecks.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/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/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/Predicate.h
-include/lldb/Host/ProcessLauncher.h
-include/lldb/Host/ProcessRunLock.h
-include/lldb/Host/PseudoTerminal.h
-include/lldb/Host/Socket.h
-include/lldb/Host/SocketAddress.h
-include/lldb/Host/StringConvert.h
-include/lldb/Host/Symbols.h
-include/lldb/Host/TaskPool.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/NativeBreakpoint.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/SoftwareBreakpoint.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/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/editlinewin.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/Args.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/CommandObjectRegexCommand.h
-include/lldb/Interpreter/CommandOptionValidators.h
-include/lldb/Interpreter/CommandReturnObject.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/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/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/Symbol/ArmUnwindInfo.h
-include/lldb/Symbol/Block.h
-include/lldb/Symbol/ClangASTContext.h
-include/lldb/Symbol/ClangASTImporter.h
-include/lldb/Symbol/ClangExternalASTSourceCallbacks.h
-include/lldb/Symbol/ClangExternalASTSourceCommon.h
-include/lldb/Symbol/ClangUtil.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/Declaration.h
-include/lldb/Symbol/FuncUnwinders.h
-include/lldb/Symbol/Function.h
-include/lldb/Symbol/GoASTContext.h
-include/lldb/Symbol/JavaASTContext.h
-include/lldb/Symbol/LineEntry.h
-include/lldb/Symbol/LineTable.h
-include/lldb/Symbol/OCamlASTContext.h
-include/lldb/Symbol/ObjectContainer.h
-include/lldb/Symbol/ObjectFile.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/Symbol/VerifyDecl.h
-include/lldb/Target/ABI.h
-include/lldb/Target/CPPLanguageRuntime.h
-include/lldb/Target/DynamicLoader.h
-include/lldb/Target/ExecutionContext.h
-include/lldb/Target/ExecutionContextScope.h
-include/lldb/Target/FileAction.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/ModuleCache.h
-include/lldb/Target/ObjCLanguageRuntime.h
-include/lldb/Target/OperatingSystem.h
-include/lldb/Target/PathMappingList.h
-include/lldb/Target/Platform.h
-include/lldb/Target/Process.h
-include/lldb/Target/ProcessInfo.h
-include/lldb/Target/ProcessLaunchInfo.h
-include/lldb/Target/ProcessStructReader.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/RegisterNumber.h
-include/lldb/Target/SectionLoadHistory.h
-include/lldb/Target/SectionLoadList.h
-include/lldb/Target/StackFrame.h
-include/lldb/Target/StackFrameList.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/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/UnixSignals.h
-include/lldb/Target/Unwind.h
-include/lldb/Target/UnwindAssembly.h
-include/lldb/Utility/AnsiTerminal.h
-include/lldb/Utility/Baton.h
-include/lldb/Utility/CleanUp.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/Either.h
-include/lldb/Utility/Endian.h
-include/lldb/Utility/FastDemangle.h
-include/lldb/Utility/FileSpec.h
-include/lldb/Utility/Flags.h
-include/lldb/Utility/History.h
-include/lldb/Utility/IOObject.h
-include/lldb/Utility/Iterable.h
-include/lldb/Utility/JSON.h
-include/lldb/Utility/LLDBAssert.h
-include/lldb/Utility/Log.h
-include/lldb/Utility/Logging.h
-include/lldb/Utility/NameMatches.h
-include/lldb/Utility/Range.h
-include/lldb/Utility/RegularExpression.h
-include/lldb/Utility/SafeMachO.h
-include/lldb/Utility/SelectHelper.h
-include/lldb/Utility/SharedCluster.h
-include/lldb/Utility/SharingPtr.h
-include/lldb/Utility/Status.h
-include/lldb/Utility/Stream.h
-include/lldb/Utility/StreamCallback.h
-include/lldb/Utility/StreamGDBRemote.h
-include/lldb/Utility/StreamString.h
-include/lldb/Utility/StreamTee.h
-include/lldb/Utility/StringExtractor.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/TraceOptions.h
-include/lldb/Utility/UUID.h
-include/lldb/Utility/UriParser.h
-include/lldb/Utility/UserID.h
-include/lldb/Utility/VASPrintf.h
-include/lldb/Utility/VMRange.h
-lib/liblldb.so
-lib/liblldb.so.6
-lib/liblldb.so.${PKGVERSION}
-lib/liblldbBase.a
-lib/liblldbBreakpoint.a
-lib/liblldbCommands.a
-lib/liblldbCore.a
-lib/liblldbDataFormatters.a
-lib/liblldbExpression.a
-lib/liblldbHost.a
-lib/liblldbInitialization.a
-lib/liblldbInterpreter.a
-lib/liblldbPluginABIMacOSX_arm.a
-lib/liblldbPluginABIMacOSX_arm64.a
-lib/liblldbPluginABIMacOSX_i386.a
-lib/liblldbPluginABISysV_arm.a
-lib/liblldbPluginABISysV_arm64.a
-lib/liblldbPluginABISysV_hexagon.a
-lib/liblldbPluginABISysV_i386.a
-lib/liblldbPluginABISysV_mips.a
-lib/liblldbPluginABISysV_mips64.a
-lib/liblldbPluginABISysV_ppc.a
-lib/liblldbPluginABISysV_ppc64.a
-lib/liblldbPluginABISysV_s390x.a
-lib/liblldbPluginABISysV_x86_64.a
-lib/liblldbPluginAppleObjCRuntime.a
-lib/liblldbPluginCPlusPlusLanguage.a
-lib/liblldbPluginCXXItaniumABI.a
-lib/liblldbPluginDisassemblerLLVM.a
-lib/liblldbPluginDynamicLoaderHexagonDYLD.a
-lib/liblldbPluginDynamicLoaderMacOSXDYLD.a
-lib/liblldbPluginDynamicLoaderPosixDYLD.a
-lib/liblldbPluginDynamicLoaderStatic.a
-lib/liblldbPluginDynamicLoaderWindowsDYLD.a
-lib/liblldbPluginExpressionParserClang.a
-lib/liblldbPluginExpressionParserGo.a
-lib/liblldbPluginGoLanguage.a
-lib/liblldbPluginInstructionARM.a
-lib/liblldbPluginInstructionARM64.a
-lib/liblldbPluginInstructionMIPS.a
-lib/liblldbPluginInstructionMIPS64.a
-lib/liblldbPluginInstrumentationRuntimeASan.a
-lib/liblldbPluginInstrumentationRuntimeMainThreadChecker.a
-lib/liblldbPluginInstrumentationRuntimeTSan.a
-lib/liblldbPluginInstrumentationRuntimeUBSan.a
-lib/liblldbPluginJITLoaderGDB.a
-lib/liblldbPluginJavaLanguage.a
-lib/liblldbPluginLanguageRuntimeGo.a
-lib/liblldbPluginLanguageRuntimeJava.a
-lib/liblldbPluginMemoryHistoryASan.a
-lib/liblldbPluginOCamlLanguage.a
-lib/liblldbPluginOSGo.a
-lib/liblldbPluginOSPython.a
-lib/liblldbPluginObjCLanguage.a
-lib/liblldbPluginObjCPlusPlusLanguage.a
-lib/liblldbPluginObjectContainerBSDArchive.a
-lib/liblldbPluginObjectContainerMachOArchive.a
-lib/liblldbPluginObjectFileELF.a
-lib/liblldbPluginObjectFileJIT.a
-lib/liblldbPluginObjectFileMachO.a
-lib/liblldbPluginObjectFilePECOFF.a
-lib/liblldbPluginPlatformAndroid.a
-lib/liblldbPluginPlatformFreeBSD.a
-lib/liblldbPluginPlatformGDB.a
-lib/liblldbPluginPlatformKalimba.a
-lib/liblldbPluginPlatformLinux.a
-lib/liblldbPluginPlatformMacOSX.a
-lib/liblldbPluginPlatformNetBSD.a
-lib/liblldbPluginPlatformOpenBSD.a
-lib/liblldbPluginPlatformPOSIX.a
-lib/liblldbPluginPlatformWindows.a
-lib/liblldbPluginProcessElfCore.a
-lib/liblldbPluginProcessGDBRemote.a
-lib/liblldbPluginProcessMinidump.a
-lib/liblldbPluginProcessNetBSD.a
-lib/liblldbPluginProcessPOSIX.a
-lib/liblldbPluginProcessUtility.a
-lib/liblldbPluginRenderScriptRuntime.a
-lib/liblldbPluginScriptInterpreterNone.a
-lib/liblldbPluginScriptInterpreterPython.a
-lib/liblldbPluginStructuredDataDarwinLog.a
-lib/liblldbPluginSymbolFileDWARF.a
-lib/liblldbPluginSymbolFilePDB.a
-lib/liblldbPluginSymbolFileSymtab.a
-lib/liblldbPluginSymbolVendorELF.a
-lib/liblldbPluginSystemRuntimeMacOSX.a
-lib/liblldbPluginUnwindAssemblyInstEmulation.a
-lib/liblldbPluginUnwindAssemblyX86.a
-lib/liblldbSymbol.a
-lib/liblldbTarget.a
-lib/liblldbUtility.a
-${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/runtime/__init__.py
-${PYSITELIB}/lldb/utils/__init__.py
-${PYSITELIB}/lldb/utils/symbolication.py
-@pkgdir include/lldb/Host/windows/getopt
-@pkgdir include/lldb/Host/msvc
-@pkgdir include/lldb/Host/mingw
-@pkgdir include/lldb/API
diff --git a/lldb-netbsd/PLIST.Darwin b/lldb-netbsd/PLIST.Darwin
deleted file mode 100644
index 322eab0f1d..0000000000
--- a/lldb-netbsd/PLIST.Darwin
+++ /dev/null
@@ -1,14 +0,0 @@
-@comment $NetBSD: PLIST.Darwin,v 1.2 2017/03/17 22:38:17 adam Exp $
-bin/darwin-debug
-bin/debugserver
-lib/liblldbPluginDynamicLoaderDarwinKernel.a
-lib/liblldbPluginProcessMacOSXKernel.a
-lib/liblldbPluginSymbolVendorMacOSX.a
-${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-netbsd/TODO b/lldb-netbsd/TODO
deleted file mode 100644
index d0389b9d1e..0000000000
--- a/lldb-netbsd/TODO
+++ /dev/null
@@ -1,43 +0,0 @@
-Debugging to a file:
-    log enable -STanpstv -f /tmp/log.txt lldb all
-
-Debugging GDB remote protocol commands:
-    log enable gdb-remote packets
-
-    https://sourceware.org/gdb/onlinedocs/gdb/Remote-Protocol.html
-
-Debugging with gdb(1):
-    Start the server:
-        gdb --args lldb-server g *:1234 -- ./signal
-        gdb --args lldb-server g *:1234 -- /usr/bin/look
-
-    Start the client:
-        lldb
-    Inside it:
-        process connect connect://localhost:1234
-
-
-Introduce objc++ setup with gcc(1) for "make test":
-    Build Command Output:
-    g++: error trying to exec 'cc1objplus': execvp: No such file or directory
-    g++: error trying to exec 'cc1objplus': execvp: No such file or directory
-    gmake[4]: *** [main.o] Error 1
-
-Known bugs
-==========
- - attaching to process broken or violating PaX MPROTECT
-   (violation is fine, just fix research the real reason)
- - process interrupt does not work
- - no threads in process plugin
- - no x86-32 bit support
- - fix test suite bugs..
- - unknown ones
- - switch from kvm(3) to sysctl(7)
- - SocketTest.cpp: connection tests hang when run early after boot,
-   it seems that kernel wrongly accepts IPv6 connection to non-open port
-
-REMAINING MILESTONES
-====================
-1. Fix the kernel for multiple threads in tracee
-2. Add support for multiple threads in NetBSD Native Process Plugin
-3. Enable tests on the NetBSD buildbot
diff --git a/lldb-netbsd/buildlink3.mk b/lldb-netbsd/buildlink3.mk
deleted file mode 100644
index 936ec59ec5..0000000000
--- a/lldb-netbsd/buildlink3.mk
+++ /dev/null
@@ -1,18 +0,0 @@
-# $NetBSD$
-
-BUILDLINK_TREE+=	lldb
-
-.if !defined(LLDB_BUILDLINK3_MK)
-LLDB_BUILDLINK3_MK:=
-
-BUILDLINK_API_DEPENDS.lldb+=	lldb>=5.0.0
-BUILDLINK_PKGSRCDIR.lldb?=	../../wip/lldb-netbsd
-
-.include "../../textproc/libxml2/buildlink3.mk"
-.include "../../wip/llvm-netbsd/buildlink3.mk"
-.include "../../wip/clang-netbsd/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../devel/swig/buildlink3.mk"
-.endif	# LLDB_BUILDLINK3_MK
-
-BUILDLINK_TREE+=	-lldb
diff --git a/lldb-netbsd/distinfo b/lldb-netbsd/distinfo
deleted file mode 100644
index 012fb36d96..0000000000
--- a/lldb-netbsd/distinfo
+++ /dev/null
@@ -1,19 +0,0 @@
-$NetBSD: distinfo,v 1.35 2015/09/11 01:21:57 tnn Exp $
-
-SHA1 (cfe-3.6.2.src.tar.xz) = 7ba809c9c17819a16b668640a642ed134d7052f0
-RMD160 (cfe-3.6.2.src.tar.xz) = 10d913b4d5317f8c2520e5fc6117df30937317a8
-Size (cfe-3.6.2.src.tar.xz) = 8617576 bytes
-SHA1 (compiler-rt-3.6.2.src.tar.xz) = c6c52d2923a60f1a2ca2f22fea1770fd2e25728d
-RMD160 (compiler-rt-3.6.2.src.tar.xz) = 9b68a32d49d4bef4603d550934192f39fea42895
-Size (compiler-rt-3.6.2.src.tar.xz) = 1128080 bytes
-SHA1 (libcxx-3.6.2.src.tar.xz) = 6c5aee9f05ecf17d1e3ecb1add34a33a5a904469
-RMD160 (libcxx-3.6.2.src.tar.xz) = 42b8832d01d4e6b553babc93cb5dbd4ce2bb1931
-Size (libcxx-3.6.2.src.tar.xz) = 944020 bytes
-SHA1 (llvm-3.6.2.src.tar.xz) = 7a00257eb2bc9431e4c77c3a36b033072c54bc7e
-RMD160 (llvm-3.6.2.src.tar.xz) = 521cbc5fe2925ea3c6e90c7a31f752a04045c972
-Size (llvm-3.6.2.src.tar.xz) = 12802380 bytes
-SHA1 (patch-source_Plugins_ObjectFile_ELF_ObjectFileELF.cpp) = 2bddd0bc91fcf7b9c488cde327bd1006dade86ce
-SHA1 (patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp) = c9cdda1ac7346d5fb6ff9f0eaa8890b28278498c
-SHA1 (patch-source_Plugins_Process_elf-core_RegisterContextPOSIXCore__arm64.cpp) = e5d14323468130da799f4f44852ccddf6cbc62ee
-SHA1 (patch-source_Plugins_Process_elf-core_RegisterUtilities.h) = e1f3d5eb7b050e92f6d1d57ea31266eb3a8720ad
-SHA1 (patch-source_Plugins_Process_elf-core_ThreadElfCore.cpp) = 6db7ec19df61f0f94f2da35ed5dead9f48b3098c
diff --git a/lldb-netbsd/patches/patch-source_Plugins_ObjectFile_ELF_ObjectFileELF.cpp b/lldb-netbsd/patches/patch-source_Plugins_ObjectFile_ELF_ObjectFileELF.cpp
deleted file mode 100644
index 5b7319334b..0000000000
--- a/lldb-netbsd/patches/patch-source_Plugins_ObjectFile_ELF_ObjectFileELF.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-$NetBSD$
-
---- source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp.orig	2018-05-04 16:30:02.190747122 +0000
-+++ source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
-@@ -53,6 +53,7 @@ namespace {
- const char *const LLDB_NT_OWNER_FREEBSD = "FreeBSD";
- const char *const LLDB_NT_OWNER_GNU = "GNU";
- const char *const LLDB_NT_OWNER_NETBSD = "NetBSD";
-+const char *const LLDB_NT_OWNER_NETBSDCORE = "NetBSD-CORE";
- const char *const LLDB_NT_OWNER_OPENBSD = "OpenBSD";
- const char *const LLDB_NT_OWNER_CSR = "csr";
- const char *const LLDB_NT_OWNER_ANDROID = "Android";
-@@ -68,8 +69,10 @@ const elf_word LLDB_NT_GNU_ABI_SIZE = 16
- 
- const elf_word LLDB_NT_GNU_BUILD_ID_TAG = 0x03;
- 
--const elf_word LLDB_NT_NETBSD_ABI_TAG = 0x01;
--const elf_word LLDB_NT_NETBSD_ABI_SIZE = 4;
-+const elf_word LLDB_NT_NETBSD_NT_NETBSD_IDENT_TAG = 1;
-+const elf_word LLDB_NT_NETBSD_NT_NETBSD_IDENT_DESCSZ = 4;
-+const elf_word LLDB_NT_NETBSD_NT_NETBSD_IDENT_NAMESZ = 7;
-+const elf_word LLDB_NT_NETBSD_NT_PROCINFO = 1;
- 
- // GNU ABI note OS constants
- const elf_word LLDB_NT_GNU_ABI_OS_LINUX = 0x00;
-@@ -1294,25 +1297,41 @@ ObjectFileELF::RefineModuleDetailsFromNo
-         // The note.n_name == LLDB_NT_OWNER_GNU is valid for Linux platform
-         arch_spec.GetTriple().setOS(llvm::Triple::OSType::Linux);
-     }
--    // Process NetBSD ELF notes.
-+    // Process NetBSD ELF executables and shared libraries
-     else if ((note.n_name == LLDB_NT_OWNER_NETBSD) &&
--             (note.n_type == LLDB_NT_NETBSD_ABI_TAG) &&
--             (note.n_descsz == LLDB_NT_NETBSD_ABI_SIZE)) {
--      // Pull out the min version info.
-+             (note.n_type == LLDB_NT_NETBSD_NT_NETBSD_IDENT_TAG) &&
-+             (note.n_descsz == LLDB_NT_NETBSD_NT_NETBSD_IDENT_DESCSZ) &&
-+             (note.n_namesz == LLDB_NT_NETBSD_NT_NETBSD_IDENT_NAMESZ)) {
-+      // Pull out the version info.
-       uint32_t version_info;
-       if (data.GetU32(&offset, &version_info, 1) == nullptr) {
-         error.SetErrorString("failed to read NetBSD ABI note payload");
-         return error;
-       }
--
-+      // Convert the version info into a major/minor/patch number.
-+      //     #define __NetBSD_Version__ MMmmrrpp00
-+      //
-+      //     M = major version
-+      //     m = minor version; a minor number of 99 indicates current.
-+      //     r = 0 (since NetBSD 3.0 not used)
-+      //     p = patchlevel
-+      const uint32_t version_major = version_info / 100000000;	
-+      const uint32_t version_minor = (version_info % 100000000) / 1000000;
-+      const uint32_t version_patch = (version_info % 10000) / 100;
-+      char os_name[32];
-+      snprintf(os_name, sizeof(os_name),
-+               "netbsd%" PRIu32 ".%" PRIu32 ".%" PRIu32, version_major,
-+               version_minor, version_patch);
-+      // Set the elf OS version to NetBSD.  Also clear the vendor.
-+      arch_spec.GetTriple().setOSName(os_name);
-+      arch_spec.GetTriple().setVendor(llvm::Triple::VendorType::UnknownVendor);
-+    }
-+    // Process NetBSD ELF core(5) notes
-+    else if ((note.n_name == LLDB_NT_OWNER_NETBSDCORE) &&
-+             (note.n_type == LLDB_NT_NETBSD_NT_PROCINFO)) {
-       // Set the elf OS version to NetBSD.  Also clear the vendor.
-       arch_spec.GetTriple().setOS(llvm::Triple::OSType::NetBSD);
-       arch_spec.GetTriple().setVendor(llvm::Triple::VendorType::UnknownVendor);
--
--      if (log)
--        log->Printf(
--            "ObjectFileELF::%s detected NetBSD, min version constant %" PRIu32,
--            __FUNCTION__, version_info);
-     }
-     // Process OpenBSD ELF notes.
-     else if (note.n_name == LLDB_NT_OWNER_OPENBSD) {
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp b/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp
deleted file mode 100644
index 39a66e29a1..0000000000
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp
+++ /dev/null
@@ -1,180 +0,0 @@
-$NetBSD$
-
---- source/Plugins/Process/elf-core/ProcessElfCore.cpp.orig	2018-05-04 16:30:00.745959198 +0000
-+++ source/Plugins/Process/elf-core/ProcessElfCore.cpp
-@@ -453,16 +453,43 @@ static void ParseFreeBSDPrStatus(ThreadD
-   thread_data.gpregset = DataExtractor(data, offset, len);
- }
- 
--static void ParseNetBSDProcInfo(ThreadData &thread_data,
--                                const DataExtractor &data) {
-+static Status ParseNetBSDProcInfo(const DataExtractor &data, uint32_t &cpi_nlwps,
-+                                  uint32_t &cpi_signo, uint32_t &cpi_siglwp) {
-   lldb::offset_t offset = 0;
- 
--  int version = data.GetU32(&offset);
-+  uint32_t version = data.GetU32(&offset);
-   if (version != 1)
--    return;
-+    return Status(
-+        "Error parsing NetBSD core(5) notes: Unsupported procinfo version");
- 
--  offset += 4;
--  thread_data.signo = data.GetU32(&offset);
-+  uint32_t cpisize = data.GetU32(&offset);
-+  if (cpisize != NETBSD::NT_PROCINFO_SIZE)
-+    return Status(
-+        "Error parsing NetBSD core(5) notes: Unsupported procinfo size");
-+
-+  cpi_signo = data.GetU32(&offset); /* killing signal */
-+
-+  offset += NETBSD::NT_PROCINFO_CPI_SIGCODE_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_SIGPEND_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_SIGMASK_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_SIGIGNORE_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_SIGCATCH_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_PID_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_PPID_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_PGRP_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_SID_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_RUID_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_EUID_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_SVUID_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_RGID_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_EGID_SIZE;
-+  offset += NETBSD::NT_PROCINFO_CPI_SVGID_SIZE;
-+  cpi_nlwps = data.GetU32(&offset); /* number of LWPs */
-+
-+  offset += NETBSD::NT_PROCINFO_CPI_NAME_SIZE;
-+  cpi_siglwp = data.GetU32(&offset); /* LWP target of killing signal */
-+
-+  return Status();
- }
- 
- static void ParseOpenBSDProcInfo(ThreadData &thread_data,
-@@ -550,35 +577,99 @@ llvm::Error ProcessElfCore::parseFreeBSD
- 
- llvm::Error ProcessElfCore::parseNetBSDNotes(llvm::ArrayRef<CoreNote> notes) {
-   ThreadData thread_data;
--  for (const auto &note : notes) {
--    // NetBSD per-thread information is stored in notes named "NetBSD-CORE@nnn"
--    // so match on the initial part of the string.
--    if (!llvm::StringRef(note.info.n_name).startswith("NetBSD-CORE"))
--      continue;
-+  ArchSpec arch = GetArchitecture();
-+  /*
-+   * To be extracted from struct netbsd_elfcore_procinfo
-+   * Used to sanity check of the LWPs of the process
-+   */
-+  uint32_t nlwps = 0;
-+  uint32_t signo;  /* killing signal */
-+  uint32_t siglwp; /* LWP target of killing signal */
- 
--    switch (note.info.n_type) {
--    case NETBSD::NT_PROCINFO:
--      ParseNetBSDProcInfo(thread_data, note.data);
--      break;
--    case NETBSD::NT_AUXV:
--      m_auxv = note.data;
--      break;
-+  for (const auto &note : notes) {
-+    llvm::StringRef name = note.info.n_name;
- 
--    case NETBSD::NT_AMD64_REGS:
--      if (GetArchitecture().GetMachine() == llvm::Triple::x86_64)
--        thread_data.gpregset = note.data;
--      break;
--    default:
--      thread_data.notes.push_back(note);
--      break;
-+    if (name == "NetBSD-CORE") {
-+      if (note.info.n_type == NETBSD::NT_PROCINFO) {
-+        Status error = ParseNetBSDProcInfo(note.data, nlwps, signo, siglwp);
-+        if (error.Fail()) {
-+          return error.ToError(); // return Status(std::move(error));
-+        }
-+      } else if (note.info.n_type == NETBSD::NT_AUXV) {
-+        m_auxv = note.data;
-+      }
-+    } else if (name.consume_front("NetBSD-CORE@")) {
-+      lldb::tid_t tid;
-+      if (name.getAsInteger(10, tid))
-+        return Status("Error parsing NetBSD core(5) notes: Cannot convert "
-+                     "LWP ID to integer").ToError();
-+
-+      switch (arch.GetMachine()) {
-+      case llvm::Triple::x86_64: {
-+        /* Assume order PT_GETREGS, PT_GETFPREGS */
-+        if (note.info.n_type == NETBSD::AMD64::NT_REGS) {
-+          m_thread_data.push_back(ThreadData());
-+          m_thread_data.back().gpregset = note.data;
-+          m_thread_data.back().tid = tid;
-+        } else if (note.info.n_type == NETBSD::AMD64::NT_FPREGS) {
-+          m_thread_data.back().notes.push_back(note);
-+        } else {
-+          return Status(
-+              "Error parsing NetBSD core(5) notes: Unsupported AMD64 NOTE").ToError();
-+        }
-+      } break;
-+      case llvm::Triple::aarch64: {
-+        /* Assume order PT_GETREGS, PT_GETFPREGS */
-+        if (note.info.n_type == NETBSD::AARCH64::NT_REGS) {
-+          m_thread_data.push_back(ThreadData());
-+          m_thread_data.back().gpregset = note.data;
-+          m_thread_data.back().tid = tid;
-+        } else if (note.info.n_type == NETBSD::AARCH64::NT_FPREGS) {
-+          m_thread_data.back().notes.push_back(note); // We need to implement an extractor of 128bit integers
-+        } else {
-+          return Status(
-+              "Error parsing NetBSD core(5) notes: Unsupported EVBARM NOTE").ToError();
-+        }
-+      } break;
-+      default:
-+        return Status(
-+            "Error parsing NetBSD core(5) notes: Unsupported architecture").ToError();
-+      }
-+    } else {
-+      return Status("Error parsing NetBSD core(5) notes: Unrecognized note").ToError();
-+     }
-+   }
-+
-+  if (m_thread_data.empty())
-+    return Status("Error parsing NetBSD core(5) notes: No threads information "
-+                 "specified in notes").ToError();
-+
-+  if (m_thread_data.size() != nlwps)
-+    return Status("Error parsing NetBSD core(5) notes: Mismatch between the "
-+                 "number of LWPs in netbsd_elfcore_procinfo and the number of "
-+                 "LWPs specified by MD notes").ToError();
-+
-+  /* The whole process signal */
-+  if (siglwp == 0) {
-+    for (auto &data : m_thread_data)
-+      data.signo = signo;
-+  }
-+  /* Signal destinated for a particular LWP */
-+  else {
-+    bool passed = false;
-+
-+    for (auto &data : m_thread_data) {
-+      if (data.tid == siglwp) {
-+        data.signo = signo;
-+        passed = true;
-+        break;
-+      }
-     }
--  }
--  if (thread_data.gpregset.GetByteSize() == 0) {
--    return llvm::make_error<llvm::StringError>(
--        "Could not find general purpose registers note in core file.",
--        llvm::inconvertibleErrorCode());
--  }
--  m_thread_data.push_back(thread_data);
-+
-+    if (!passed)
-+      return Status(
-+          "Error parsing NetBSD core(5) notes: Signal passed to unknown LWP").ToError();
-+   }
-   return llvm::Error::success();
- }
- 
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_RegisterContextPOSIXCore__arm64.cpp b/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_RegisterContextPOSIXCore__arm64.cpp
deleted file mode 100644
index 117ad5bfd0..0000000000
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_RegisterContextPOSIXCore__arm64.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD$
-
---- source/Plugins/Process/elf-core/RegisterContextPOSIXCore_arm64.cpp.orig	2018-02-02 18:39:12.000000000 +0000
-+++ source/Plugins/Process/elf-core/RegisterContextPOSIXCore_arm64.cpp
-@@ -43,7 +43,14 @@ bool RegisterContextCorePOSIX_arm64::Wri
- bool RegisterContextCorePOSIX_arm64::ReadRegister(const RegisterInfo *reg_info,
-                                                   RegisterValue &value) {
-   lldb::offset_t offset = reg_info->byte_offset;
--  uint64_t v = m_gpr.GetMaxU64(&offset, reg_info->byte_size);
-+  uint64_t v;
-+
-+  if (reg_info->byte_size == 16) {
-+    v = m_gpr.GetMaxU64(&offset, 8);
-+    v = m_gpr.GetMaxU64(&offset, 8);
-+  } else {
-+    v = m_gpr.GetMaxU64(&offset, reg_info->byte_size);
-+  }
-   if (offset == reg_info->byte_offset + reg_info->byte_size) {
-     value = v;
-     return true;
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_RegisterUtilities.h b/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_RegisterUtilities.h
deleted file mode 100644
index 2d42380034..0000000000
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_RegisterUtilities.h
+++ /dev/null
@@ -1,62 +0,0 @@
-$NetBSD$
-
---- source/Plugins/Process/elf-core/RegisterUtilities.h.orig	2018-02-02 18:39:12.000000000 +0000
-+++ source/Plugins/Process/elf-core/RegisterUtilities.h
-@@ -28,9 +28,46 @@ enum {
- }
- 
- namespace NETBSD {
--enum { NT_PROCINFO = 1, NT_AUXV, NT_AMD64_REGS = 33, NT_AMD64_FPREGS = 35 };
-+enum { NT_PROCINFO = 1, NT_AUXV = 2};
-+
-+/* Size in bytes */
-+enum { NT_PROCINFO_SIZE = 160 };
-+
-+/* Size in bytes */
-+enum {
-+  NT_PROCINFO_CPI_VERSION_SIZE = 4,
-+  NT_PROCINFO_CPI_CPISIZE_SIZE = 4,
-+  NT_PROCINFO_CPI_SIGNO_SIZE = 4,
-+  NT_PROCINFO_CPI_SIGCODE_SIZE = 4,
-+  NT_PROCINFO_CPI_SIGPEND_SIZE = 16,
-+  NT_PROCINFO_CPI_SIGMASK_SIZE = 16,
-+  NT_PROCINFO_CPI_SIGIGNORE_SIZE = 16,
-+  NT_PROCINFO_CPI_SIGCATCH_SIZE = 16,
-+  NT_PROCINFO_CPI_PID_SIZE = 4,
-+  NT_PROCINFO_CPI_PPID_SIZE = 4,
-+  NT_PROCINFO_CPI_PGRP_SIZE = 4,
-+  NT_PROCINFO_CPI_SID_SIZE = 4,
-+  NT_PROCINFO_CPI_RUID_SIZE = 4,
-+  NT_PROCINFO_CPI_EUID_SIZE = 4,
-+  NT_PROCINFO_CPI_SVUID_SIZE = 4,
-+  NT_PROCINFO_CPI_RGID_SIZE = 4,
-+  NT_PROCINFO_CPI_EGID_SIZE = 4,
-+  NT_PROCINFO_CPI_SVGID_SIZE = 4,
-+  NT_PROCINFO_CPI_NLWPS_SIZE = 4,
-+  NT_PROCINFO_CPI_NAME_SIZE = 32,
-+  NT_PROCINFO_CPI_SIGLWP_SIZE = 4,
-+};
-+
-+namespace AMD64 {
-+enum { NT_REGS = 33, NT_FPREGS = 35 };
-+}
-+
-+namespace AARCH64 {
-+enum { NT_REGS = 32, NT_FPREGS = 34 };
- }
- 
-+} // namespace NETBSD
-+
- namespace OPENBSD {
- enum {
-   NT_PROCINFO = 10,
-@@ -92,7 +129,8 @@ constexpr RegsetDesc FPR_Desc[] = {
-     // The result from FXSAVE is in NT_PRXFPREG for i386 core files
-     {llvm::Triple::Linux, llvm::Triple::x86, LINUX::NT_PRXFPREG},
-     {llvm::Triple::Linux, llvm::Triple::UnknownArch, LINUX::NT_FPREGSET},
--    {llvm::Triple::NetBSD, llvm::Triple::x86_64, NETBSD::NT_AMD64_FPREGS},
-+    {llvm::Triple::NetBSD, llvm::Triple::aarch64, NETBSD::AARCH64::NT_FPREGS},
-+    {llvm::Triple::NetBSD, llvm::Triple::x86_64, NETBSD::AMD64::NT_FPREGS},
-     {llvm::Triple::OpenBSD, llvm::Triple::UnknownArch, OPENBSD::NT_FPREGS},
- };
- 
diff --git a/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ThreadElfCore.cpp b/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ThreadElfCore.cpp
deleted file mode 100644
index 636383a735..0000000000
--- a/lldb-netbsd/patches/patch-source_Plugins_Process_elf-core_ThreadElfCore.cpp
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD$
-
---- source/Plugins/Process/elf-core/ThreadElfCore.cpp.orig	2018-05-04 16:30:00.737965891 +0000
-+++ source/Plugins/Process/elf-core/ThreadElfCore.cpp
-@@ -118,6 +118,9 @@ ThreadElfCore::CreateRegisterContextForF
- 
-     case llvm::Triple::NetBSD: {
-       switch (arch.GetMachine()) {
-+      case llvm::Triple::aarch64:
-+        reg_interface = new RegisterInfoPOSIX_arm64(arch);
-+        break;
-       case llvm::Triple::x86_64:
-         reg_interface = new RegisterContextNetBSD_x86_64(arch);
-         break;



Home | Main Index | Thread Index | Old Index