pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lldb-git: Drop
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Mon Apr 1 18:45:25 2019 +0200
Changeset: 28fc5e06c925dc66607f142b616913d27cb58399
Removed Files:
lldb-git/DESCR
lldb-git/Makefile
lldb-git/PLIST
lldb-git/PLIST.Darwin
lldb-git/buildlink3.mk
lldb-git/distinfo
lldb-git/patches/patch-source_Plugins_ObjectFile_ELF_ObjectFileELF.cpp
lldb-git/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp
lldb-git/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.h
Log Message:
lldb-git: 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=28fc5e06c925dc66607f142b616913d27cb58399
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
lldb-git/DESCR | 1 -
lldb-git/Makefile | 93 ----
lldb-git/PLIST | 596 ---------------------
lldb-git/PLIST.Darwin | 14 -
lldb-git/buildlink3.mk | 18 -
lldb-git/distinfo | 17 -
...source_Plugins_ObjectFile_ELF_ObjectFileELF.cpp | 77 ---
...rce_Plugins_Process_elf-core_ProcessElfCore.cpp | 316 -----------
...ource_Plugins_Process_elf-core_ProcessElfCore.h | 23 -
9 files changed, 1155 deletions(-)
diffs:
diff --git a/lldb-git/DESCR b/lldb-git/DESCR
deleted file mode 100644
index 2a231b41a0..0000000000
--- a/lldb-git/DESCR
+++ /dev/null
@@ -1 +0,0 @@
-Next generation, high-performance debugger
diff --git a/lldb-git/Makefile b/lldb-git/Makefile
deleted file mode 100644
index afbbbc9c31..0000000000
--- a/lldb-git/Makefile
+++ /dev/null
@@ -1,93 +0,0 @@
-# $NetBSD: Makefile.common,v 1.7 2015/07/20 05:49:53 adam Exp $
-
-PKGNAME= lldb-5.0.0
-CATEGORIES= lang devel
-
-GIT_REPOSITORIES= lldb
-GIT_REPO.lldb= git://github.com/llvm-mirror/lldb.git
-
-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
-
-post-extract:
- ${RUN} mkdir -p ${WRKDIR}/build
-
-.include "../../wip/mk/git-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-git
-.include "../../wip/clang-git/buildlink3.mk"
-DEPENDS+= llvm-${PKGVERSION_NOREV}{,nb*}:../../wip/llvm-git
-.include "../../wip/llvm-git/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-git/PLIST b/lldb-git/PLIST
deleted file mode 100644
index 2ba35054ef..0000000000
--- a/lldb-git/PLIST
+++ /dev/null
@@ -1,596 +0,0 @@
-@comment $NetBSD$
-bin/lldb
-bin/lldb-argdumper
-bin/lldb-mi
-bin/lldb-server
-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/SBBroadcaster.h
-include/lldb/API/SBCommandInterpreter.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/SBError.h
-include/lldb/API/SBEvent.h
-include/lldb/API/SBExecutionContext.h
-include/lldb/API/SBExpressionOptions.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/SBQueue.h
-include/lldb/API/SBQueueItem.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/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/API/SystemInitializerFull.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/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/Baton.h
-include/lldb/Core/Broadcaster.h
-include/lldb/Core/ClangForward.h
-include/lldb/Core/Communication.h
-include/lldb/Core/Connection.h
-include/lldb/Core/DataBuffer.h
-include/lldb/Core/DataBufferHeap.h
-include/lldb/Core/DataBufferMemoryMap.h
-include/lldb/Core/DataEncoder.h
-include/lldb/Core/DataExtractor.h
-include/lldb/Core/Debugger.h
-include/lldb/Core/Disassembler.h
-include/lldb/Core/EmulateInstruction.h
-include/lldb/Core/Event.h
-include/lldb/Core/FastDemangle.h
-include/lldb/Core/FileLineResolver.h
-include/lldb/Core/FileSpecList.h
-include/lldb/Core/Flags.h
-include/lldb/Core/FormatEntity.h
-include/lldb/Core/History.h
-include/lldb/Core/IOHandler.h
-include/lldb/Core/IOStreamMacros.h
-include/lldb/Core/Listener.h
-include/lldb/Core/LoadedModuleInfoList.h
-include/lldb/Core/Log.h
-include/lldb/Core/Logging.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/StreamCallback.h
-include/lldb/Core/StreamFile.h
-include/lldb/Core/StreamGDBRemote.h
-include/lldb/Core/StringList.h
-include/lldb/Core/StructuredData.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/Timer.h
-include/lldb/Core/UUID.h
-include/lldb/Core/UniqueCStringMap.h
-include/lldb/Core/UserID.h
-include/lldb/Core/UserSettingsController.h
-include/lldb/Core/VMRange.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/Endian.h
-include/lldb/Host/File.h
-include/lldb/Host/FileCache.h
-include/lldb/Host/FileSpec.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/IOObject.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/Socket.h
-include/lldb/Host/SocketAddress.h
-include/lldb/Host/StringConvert.h
-include/lldb/Host/Symbols.h
-include/lldb/Host/Terminal.h
-include/lldb/Host/ThisThread.h
-include/lldb/Host/ThreadLauncher.h
-include/lldb/Host/Time.h
-include/lldb/Host/XML.h
-include/lldb/Host/android/Config.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/NativeRegisterContextRegisterInfo.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/Config.h
-include/lldb/Host/freebsd/HostInfoFreeBSD.h
-include/lldb/Host/freebsd/HostThreadFreeBSD.h
-include/lldb/Host/linux/AbstractSocket.h
-include/lldb/Host/linux/Config.h
-include/lldb/Host/linux/HostInfoLinux.h
-include/lldb/Host/linux/HostThreadLinux.h
-include/lldb/Host/linux/ProcessLauncherLinux.h
-include/lldb/Host/linux/Ptrace.h
-include/lldb/Host/linux/Uio.h
-include/lldb/Host/macosx/Config.h
-include/lldb/Host/macosx/HostInfoMacOSX.h
-include/lldb/Host/macosx/HostThreadMacOSX.h
-include/lldb/Host/mingw/Config.h
-include/lldb/Host/msvc/Config.h
-include/lldb/Host/netbsd/Config.h
-include/lldb/Host/netbsd/HostInfoNetBSD.h
-include/lldb/Host/netbsd/HostThreadNetBSD.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/MainLoopPosix.h
-include/lldb/Host/posix/PipePosix.h
-include/lldb/Host/posix/ProcessLauncherPosix.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/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/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/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/CleanUp.h
-include/lldb/Utility/ConstString.h
-include/lldb/Utility/Either.h
-include/lldb/Utility/Error.h
-include/lldb/Utility/Iterable.h
-include/lldb/Utility/JSON.h
-include/lldb/Utility/LLDBAssert.h
-include/lldb/Utility/NameMatches.h
-include/lldb/Utility/ProcessStructReader.h
-include/lldb/Utility/PseudoTerminal.h
-include/lldb/Utility/Range.h
-include/lldb/Utility/RegisterNumber.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/Stream.h
-include/lldb/Utility/StreamString.h
-include/lldb/Utility/StreamTee.h
-include/lldb/Utility/StringExtractor.h
-include/lldb/Utility/StringLexer.h
-include/lldb/Utility/TaskPool.h
-include/lldb/Utility/Timeout.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.5
-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/liblldbPluginInstrumentationRuntimeAddressSanitizer.a
-lib/liblldbPluginInstrumentationRuntimeThreadSanitizer.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/liblldbPluginPlatformPOSIX.a
-lib/liblldbPluginPlatformWindows.a
-lib/liblldbPluginProcessElfCore.a
-lib/liblldbPluginProcessGDBRemote.a
-lib/liblldbPluginProcessMachCore.a
-lib/liblldbPluginProcessMinidump.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
diff --git a/lldb-git/PLIST.Darwin b/lldb-git/PLIST.Darwin
deleted file mode 100644
index 322eab0f1d..0000000000
--- a/lldb-git/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-git/buildlink3.mk b/lldb-git/buildlink3.mk
deleted file mode 100644
index f99600c8dd..0000000000
--- a/lldb-git/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-git
-
-.include "../../textproc/libxml2/buildlink3.mk"
-.include "../../wip/llvm-git/buildlink3.mk"
-.include "../../wip/clang-git/buildlink3.mk"
-.include "../../devel/zlib/buildlink3.mk"
-.include "../../devel/swig/buildlink3.mk"
-.endif # LLDB_BUILDLINK3_MK
-
-BUILDLINK_TREE+= -lldb
diff --git a/lldb-git/distinfo b/lldb-git/distinfo
deleted file mode 100644
index 25baa15383..0000000000
--- a/lldb-git/distinfo
+++ /dev/null
@@ -1,17 +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) = d7d43c20b34068a5f535b8eeb1af2dc87c2b3175
-SHA1 (patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp) = a40965c208b6b2c6d103cdca4b4e8eb9b691adca
-SHA1 (patch-source_Plugins_Process_elf-core_ProcessElfCore.h) = b74b851ce37ee83e1b6cbf32ee4ecad909b7088c
diff --git a/lldb-git/patches/patch-source_Plugins_ObjectFile_ELF_ObjectFileELF.cpp b/lldb-git/patches/patch-source_Plugins_ObjectFile_ELF_ObjectFileELF.cpp
deleted file mode 100644
index 4c4d038dc4..0000000000
--- a/lldb-git/patches/patch-source_Plugins_ObjectFile_ELF_ObjectFileELF.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
-$NetBSD$
-
---- source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp.orig 2017-04-27 16:58:55.405029614 +0000
-+++ source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
-@@ -52,6 +52,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";
-@@ -67,8 +68,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;
-@@ -1370,25 +1373,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-git/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp b/lldb-git/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp
deleted file mode 100644
index e356bef91a..0000000000
--- a/lldb-git/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.cpp
+++ /dev/null
@@ -1,316 +0,0 @@
-$NetBSD$
-
---- source/Plugins/Process/elf-core/ProcessElfCore.cpp.orig 2017-04-27 16:58:55.000000000 +0000
-+++ source/Plugins/Process/elf-core/ProcessElfCore.cpp
-@@ -27,6 +27,7 @@
- #include "lldb/Utility/DataBufferLLVM.h"
- #include "lldb/Utility/Log.h"
-
-+#include "llvm/ADT/StringRef.h"
- #include "llvm/Support/ELF.h"
- #include "llvm/Support/Threading.h"
-
-@@ -458,9 +459,42 @@ 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 NETBSD
-+
- // Parse a FreeBSD NT_PRSTATUS note - see FreeBSD sys/procfs.h for details.
- static void ParseFreeBSDPrStatus(ThreadData &thread_data, DataExtractor &data,
- ArchSpec &arch) {
-@@ -497,15 +531,43 @@ static void ParseFreeBSDThrMisc(ThreadDa
- thread_data.name = data.GetCStr(&offset, 20);
- }
-
--static void ParseNetBSDProcInfo(ThreadData &thread_data, DataExtractor &data) {
-+static Status ParseNetBSDProcInfo(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, DataExtractor &data) {
-@@ -524,12 +586,28 @@ static void ParseOpenBSDProcInfo(ThreadD
- /// 1) A PT_NOTE segment is composed of one or more NOTE entries.
- /// 2) NOTE Entry contains a standard header followed by variable size data.
- /// (see ELFNote structure)
--/// 3) A Thread Context in a core file usually described by 3 NOTE entries.
-+Status ProcessElfCore::ParseThreadContextsFromNoteSegment(
-+ const elf::ELFProgramHeader *segment_header, DataExtractor segment_data) {
-+
-+ assert(segment_header && segment_header->p_type == llvm::ELF::PT_NOTE);
-+
-+ switch (GetArchitecture().GetTriple().getOS()) {
-+ case llvm::Triple::NetBSD:
-+ return ParseThreadContextsFromNoteSegmentNetBSD(segment_header,
-+ segment_data);
-+ default:
-+ return ParseThreadContextsFromNoteSegmentGeneric(segment_header,
-+ segment_data);
-+ }
-+}
-+
-+/// Generic (Linux, Android, FreeBSD, ...) Thread context from PT_NOTE segment
-+/// 1) A Thread Context in a core file usually described by 3 NOTE entries.
- /// a) NT_PRSTATUS - Register context
- /// b) NT_PRPSINFO - Process info(pid..)
- /// c) NT_FPREGSET - Floating point registers
--/// 4) The NOTE entries can be in any order
--/// 5) If a core file contains multiple thread contexts then there is two data
-+/// 2) The NOTE entries can be in any order
-+/// 3) If a core file contains multiple thread contexts then there is two data
- /// forms
- /// a) Each thread context(2 or more NOTE entries) contained in its own
- /// segment (PT_NOTE)
-@@ -540,8 +618,9 @@ static void ParseOpenBSDProcInfo(ThreadD
- /// new thread when it finds NT_PRSTATUS or NT_PRPSINFO NOTE entry.
- /// For case (b) there may be either one NT_PRPSINFO per thread, or a single
- /// one that applies to all threads (depending on the platform type).
--Status ProcessElfCore::ParseThreadContextsFromNoteSegment(
-+Status ProcessElfCore::ParseThreadContextsFromNoteSegmentGeneric(
- const elf::ELFProgramHeader *segment_header, DataExtractor segment_data) {
-+
- assert(segment_header && segment_header->p_type == llvm::ELF::PT_NOTE);
-
- lldb::offset_t offset = 0;
-@@ -607,21 +686,6 @@ Status ProcessElfCore::ParseThreadContext
- default:
- break;
- }
-- } else if (note.n_name.substr(0, 11) == "NetBSD-CORE") {
-- // NetBSD per-thread information is stored in notes named
-- // "NetBSD-CORE@nnn" so match on the initial part of the string.
-- m_os = llvm::Triple::NetBSD;
-- if (note.n_type == NETBSD::NT_PROCINFO) {
-- ParseNetBSDProcInfo(*thread_data, note_data);
-- } else if (note.n_type == NETBSD::NT_AUXV) {
-- m_auxv = DataExtractor(note_data);
-- } else if (arch.GetMachine() == llvm::Triple::x86_64 &&
-- note.n_type == NETBSD::NT_AMD64_REGS) {
-- thread_data->gpregset = note_data;
-- } else if (arch.GetMachine() == llvm::Triple::x86_64 &&
-- note.n_type == NETBSD::NT_AMD64_FPREGS) {
-- thread_data->fpregset = note_data;
-- }
- } else if (note.n_name.substr(0, 7) == "OpenBSD") {
- // OpenBSD per-thread information is stored in notes named
- // "OpenBSD@nnn" so match on the initial part of the string.
-@@ -659,7 +723,7 @@ Status ProcessElfCore::ParseThreadContext
- // The result from FXSAVE is in NT_PRXFPREG for i386 core files
- if (arch.GetCore() == ArchSpec::eCore_x86_64_x86_64)
- thread_data->fpregset = note_data;
-- else if(arch.IsMIPS())
-+ else if (arch.IsMIPS())
- thread_data->fpregset = note_data;
- break;
- case NT_PRPSINFO:
-@@ -717,6 +781,136 @@ Status ProcessElfCore::ParseThreadContext
- return error;
- }
-
-+/// NetBSD specific Thread context from PT_NOTE segment
-+///
-+/// NetBSD ELF core files use notes to provide information about
-+/// the process's state. The note name is "NetBSD-CORE" for
-+/// information that is global to the process, and "NetBSD-CORE@nn",
-+/// where "nn" is the lwpid of the LWP that the information belongs
-+/// to (such as register state).
-+///
-+/// NetBSD uses the following note identifiers:
-+///
-+/// ELF_NOTE_NETBSD_CORE_PROCINFO (value 1)
-+/// Note is a "netbsd_elfcore_procinfo" structure.
-+/// ELF_NOTE_NETBSD_CORE_AUXV (value 2; since NetBSD 8.0)
-+/// Note is an array of AuxInfo structures.
-+///
-+/// NetBSD also uses ptrace(2) request numbers (the ones that exist in
-+/// machine-dependent space) to identify register info notes. The
-+/// info in such notes is in the same format that ptrace(2) would
-+/// export that information.
-+///
-+/// For more information see /usr/include/sys/exec_elf.h
-+///
-+Status ProcessElfCore::ParseThreadContextsFromNoteSegmentNetBSD(
-+ const elf::ELFProgramHeader *segment_header, DataExtractor segment_data) {
-+
-+ assert(segment_header && segment_header->p_type == llvm::ELF::PT_NOTE);
-+
-+ lldb::offset_t offset = 0;
-+ ArchSpec arch = GetArchitecture();
-+ m_os = llvm::Triple::NetBSD;
-+
-+ /*
-+ * 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 */
-+
-+ while (offset < segment_header->p_filesz) {
-+ ELFNote note = ELFNote();
-+ note.Parse(segment_data, &offset);
-+
-+ size_t note_start, note_size;
-+ note_start = offset;
-+ note_size = llvm::alignTo(note.n_descsz, 4);
-+
-+ // Store the NOTE information in the current thread
-+ DataExtractor note_data(segment_data, note_start, note_size);
-+ note_data.SetAddressByteSize(
-+ m_core_module_sp->GetArchitecture().GetAddressByteSize());
-+
-+ llvm::StringRef name = note.n_name;
-+
-+ if (name == "NetBSD-CORE") {
-+ if (note.n_type == NETBSD::NT_PROCINFO) {
-+ Status error = ParseNetBSDProcInfo(note_data, nlwps, signo, siglwp);
-+ if (error.Fail())
-+ return error;
-+ } else if (note.n_type == NETBSD::NT_AUXV) {
-+ m_auxv = DataExtractor(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");
-+
-+ switch (arch.GetMachine()) {
-+ case llvm::Triple::x86_64: {
-+ /* Assume order PT_GETREGS, PT_GETFPREGS */
-+ if (note.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.n_type == NETBSD::AMD64::NT_FPREGS) {
-+ if (m_thread_data.empty() || tid != m_thread_data.back().tid)
-+ return Status("Error parsing NetBSD core(5) notes: Unexpected order "
-+ "of NOTEs PT_GETFPREG before PT_GETREG");
-+ m_thread_data.back().fpregset = note_data;
-+ } else {
-+ return Status(
-+ "Error parsing NetBSD core(5) notes: Unsupported AMD64 NOTE");
-+ }
-+ } break;
-+ default:
-+ return Status(
-+ "Error parsing NetBSD core(5) notes: Unsupported architecture");
-+ }
-+ } else {
-+ return Status("Error parsing NetBSD core(5) notes: Unrecognized note");
-+ }
-+
-+ offset += note_size;
-+ }
-+
-+ if (m_thread_data.empty())
-+ return Status("Error parsing NetBSD core(5) notes: No threads information "
-+ "specified in notes");
-+
-+ 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");
-+
-+ /* 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 (!passed)
-+ return Status(
-+ "Error parsing NetBSD core(5) notes: Signal passed to unknown LWP");
-+ }
-+
-+ return Status();
-+}
-+
- uint32_t ProcessElfCore::GetNumThreadContexts() {
- if (!m_thread_data_valid)
- DoLoadCore();
diff --git a/lldb-git/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.h b/lldb-git/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.h
deleted file mode 100644
index 869d877f24..0000000000
--- a/lldb-git/patches/patch-source_Plugins_Process_elf-core_ProcessElfCore.h
+++ /dev/null
@@ -1,23 +0,0 @@
-$NetBSD$
-
---- source/Plugins/Process/elf-core/ProcessElfCore.h.orig 2017-02-02 23:56:41.000000000 +0000
-+++ source/Plugins/Process/elf-core/ProcessElfCore.h
-@@ -125,6 +125,18 @@ private:
- lldb_private::ConstString path;
- };
-
-+ // Parse thread(s) data structuresNetBSD(prstatus, prpsinfo) from given NOTE
-+ // segment
-+ lldb_private::Status ParseThreadContextsFromNoteSegmentNetBSD(
-+ const elf::ELFProgramHeader *segment_header,
-+ lldb_private::DataExtractor segment_data);
-+
-+ // Parse thread(s) data structuresGeneric(prstatus, prpsinfo) from given NOTE
-+ // segment
-+ lldb_private::Status ParseThreadContextsFromNoteSegmentGeneric(
-+ const elf::ELFProgramHeader *segment_header,
-+ lldb_private::DataExtractor segment_data);
-+
- //------------------------------------------------------------------
- // For ProcessElfCore only
- //------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index