Update lldb build glue to make MK_LLDB=yes work.

This commit is contained in:
dim 2019-01-22 18:03:45 +00:00
parent 3057f47ad3
commit 5a0b6c1b01
2 changed files with 33 additions and 13 deletions

View File

@ -36,6 +36,7 @@ SRCS+= API/SBFileSpecList.cpp
SRCS+= API/SBFrame.cpp
SRCS+= API/SBFunction.cpp
SRCS+= API/SBHostOS.cpp
SRCS+= API/SBInitializerOptions.cpp
SRCS+= API/SBInstruction.cpp
SRCS+= API/SBInstructionList.cpp
SRCS+= API/SBLanguageRuntime.cpp
@ -91,6 +92,7 @@ SRCS+= Breakpoint/BreakpointResolverAddress.cpp
SRCS+= Breakpoint/BreakpointResolverFileLine.cpp
SRCS+= Breakpoint/BreakpointResolverFileRegex.cpp
SRCS+= Breakpoint/BreakpointResolverName.cpp
SRCS+= Breakpoint/BreakpointResolverScripted.cpp
SRCS+= Breakpoint/BreakpointSite.cpp
SRCS+= Breakpoint/BreakpointSiteList.cpp
SRCS+= Breakpoint/Stoppoint.cpp
@ -119,6 +121,7 @@ SRCS+= Commands/CommandObjectPlugin.cpp
SRCS+= Commands/CommandObjectProcess.cpp
SRCS+= Commands/CommandObjectQuit.cpp
SRCS+= Commands/CommandObjectRegister.cpp
SRCS+= Commands/CommandObjectReproducer.cpp
SRCS+= Commands/CommandObjectSettings.cpp
SRCS+= Commands/CommandObjectSource.cpp
SRCS+= Commands/CommandObjectStats.cpp
@ -133,7 +136,6 @@ SRCS+= Core/AddressRange.cpp
SRCS+= Core/AddressResolver.cpp
SRCS+= Core/AddressResolverFileLine.cpp
SRCS+= Core/AddressResolverName.cpp
SRCS+= Core/Broadcaster.cpp
SRCS+= Core/Communication.cpp
SRCS+= Core/Debugger.cpp
SRCS+= Core/Disassembler.cpp
@ -141,24 +143,21 @@ SRCS+= Core/DumpDataExtractor.cpp
SRCS+= Core/DumpRegisterValue.cpp
SRCS+= Core/DynamicLoader.cpp
SRCS+= Core/EmulateInstruction.cpp
SRCS+= Core/Event.cpp
SRCS+= Core/FileLineResolver.cpp
SRCS+= Core/FileSpecList.cpp
SRCS+= Core/FormatEntity.cpp
SRCS+= Core/Highlighter.cpp
SRCS+= Core/IOHandler.cpp
SRCS+= Core/Listener.cpp
SRCS+= Core/Mangled.cpp
SRCS+= Core/Module.cpp
SRCS+= Core/ModuleChild.cpp
SRCS+= Core/ModuleList.cpp
SRCS+= Core/Opcode.cpp
SRCS+= Core/PluginManager.cpp
SRCS+= Core/RegisterValue.cpp
SRCS+= Core/Scalar.cpp
SRCS+= Core/RichManglingContext.cpp
SRCS+= Core/SearchFilter.cpp
SRCS+= Core/Section.cpp
SRCS+= Core/SourceManager.cpp
SRCS+= Core/State.cpp
SRCS+= Core/StreamAsynchronousIO.cpp
SRCS+= Core/StreamFile.cpp
SRCS+= Core/UserSettingsController.cpp
@ -219,7 +218,6 @@ SRCS+= Host/common/HostThread.cpp
SRCS+= Host/common/LockFileBase.cpp
SRCS+= Host/common/MainLoop.cpp
SRCS+= Host/common/MonitoringProcessLauncher.cpp
SRCS+= Host/common/NativeBreakpointList.cpp
SRCS+= Host/common/NativeWatchpointList.cpp
SRCS+= Host/common/OptionParser.cpp
SRCS+= Host/common/PipeBase.cpp
@ -301,6 +299,7 @@ SRCS+= Plugins/ABI/SysV-ppc/ABISysV_ppc.cpp
SRCS+= Plugins/ABI/SysV-ppc64/ABISysV_ppc64.cpp
SRCS+= Plugins/ABI/SysV-x86_64/ABISysV_x86_64.cpp
SRCS+= Plugins/Architecture/Arm/ArchitectureArm.cpp
SRCS+= Plugins/Architecture/Mips/ArchitectureMips.cpp
SRCS+= Plugins/Architecture/PPC64/ArchitecturePPC64.cpp
SRCS+= Plugins/Disassembler/llvm/DisassemblerLLVMC.cpp
SRCS+= Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp
@ -321,9 +320,6 @@ SRCS+= Plugins/ExpressionParser/Clang/ClangPersistentVariables.cpp
SRCS+= Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
SRCS+= Plugins/ExpressionParser/Clang/ClangUtilityFunction.cpp
SRCS+= Plugins/ExpressionParser/Clang/IRForTarget.cpp
SRCS+= Plugins/ExpressionParser/Go/GoLexer.cpp
SRCS+= Plugins/ExpressionParser/Go/GoParser.cpp
SRCS+= Plugins/ExpressionParser/Go/GoUserExpression.cpp
SRCS+= Plugins/Instruction/ARM/EmulateInstructionARM.cpp
SRCS+= Plugins/Instruction/ARM/EmulationStateARM.cpp
SRCS+= Plugins/Instruction/ARM64/EmulateInstructionARM64.cpp
@ -345,6 +341,8 @@ SRCS+= Plugins/Language/CPlusPlus/LibCxxMap.cpp
SRCS+= Plugins/Language/CPlusPlus/LibCxxUnorderedMap.cpp
SRCS+= Plugins/Language/CPlusPlus/LibCxxVector.cpp
SRCS+= Plugins/Language/CPlusPlus/LibStdcpp.cpp
SRCS+= Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp
SRCS+= Plugins/Language/ClangCommon/ClangHighlighter.cpp
SRCS+= Plugins/Language/ObjC/CF.cpp
SRCS+= Plugins/Language/ObjC/Cocoa.cpp
SRCS+= Plugins/Language/ObjC/NSArray.cpp
@ -361,6 +359,7 @@ SRCS+= Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCTrampolineHandler
SRCS+= Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleThreadPlanStepThroughObjCTrampoline.cpp
SRCS+= Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp
SRCS+= Plugins/ObjectContainer/BSD-Archive/ObjectContainerBSDArchive.cpp
SRCS+= Plugins/ObjectFile/Breakpad/ObjectFileBreakpad.cpp
SRCS+= Plugins/ObjectFile/ELF/ELFHeader.cpp
SRCS+= Plugins/ObjectFile/ELF/ObjectFileELF.cpp
SRCS+= Plugins/ObjectFile/JIT/ObjectFileJIT.cpp
@ -432,6 +431,8 @@ SRCS+= Plugins/Process/elf-core/ThreadElfCore.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationHistory.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationReplayServer.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
SRCS+= Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
@ -441,11 +442,11 @@ SRCS+= Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
SRCS+= Plugins/Process/gdb-remote/ProcessGDBRemoteLog.cpp
SRCS+= Plugins/Process/gdb-remote/ThreadGDBRemote.cpp
SRCS+= Plugins/ScriptInterpreter/None/ScriptInterpreterNone.cpp
SRCS+= Plugins/SymbolFile/Breakpad/SymbolFileBreakpad.cpp
SRCS+= Plugins/SymbolFile/DWARF/AppleDWARFIndex.cpp
SRCS+= Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp
SRCS+= Plugins/SymbolFile/DWARF/DIERef.cpp
SRCS+= Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
SRCS+= Plugins/SymbolFile/DWARF/DWARFASTParserGo.cpp
SRCS+= Plugins/SymbolFile/DWARF/DWARFAbbreviationDeclaration.cpp
SRCS+= Plugins/SymbolFile/DWARF/DWARFAttribute.cpp
SRCS+= Plugins/SymbolFile/DWARF/DWARFBaseDIE.cpp
@ -498,7 +499,6 @@ SRCS+= Symbol/DebugMacros.cpp
SRCS+= Symbol/Declaration.cpp
SRCS+= Symbol/FuncUnwinders.cpp
SRCS+= Symbol/Function.cpp
SRCS+= Symbol/GoASTContext.cpp
SRCS+= Symbol/LineEntry.cpp
SRCS+= Symbol/LineTable.cpp
SRCS+= Symbol/ObjectFile.cpp
@ -544,6 +544,7 @@ SRCS+= Target/SectionLoadHistory.cpp
SRCS+= Target/SectionLoadList.cpp
SRCS+= Target/StackFrame.cpp
SRCS+= Target/StackFrameList.cpp
SRCS+= Target/StackFrameRecognizer.cpp
SRCS+= Target/StackID.cpp
SRCS+= Target/StopInfo.cpp
SRCS+= Target/SystemRuntime.cpp
@ -575,6 +576,7 @@ SRCS+= Target/UnwindAssembly.cpp
SRCS+= Utility/ArchSpec.cpp
SRCS+= Utility/Args.cpp
SRCS+= Utility/Baton.cpp
SRCS+= Utility/Broadcaster.cpp
SRCS+= Utility/CompletionRequest.cpp
SRCS+= Utility/Connection.cpp
SRCS+= Utility/ConstString.cpp
@ -583,17 +585,22 @@ SRCS+= Utility/DataBufferLLVM.cpp
SRCS+= Utility/DataEncoder.cpp
SRCS+= Utility/DataExtractor.cpp
SRCS+= Utility/Environment.cpp
SRCS+= Utility/FastDemangle.cpp
SRCS+= Utility/Event.cpp
SRCS+= Utility/FileSpec.cpp
SRCS+= Utility/IOObject.cpp
SRCS+= Utility/JSON.cpp
SRCS+= Utility/LLDBAssert.cpp
SRCS+= Utility/Listener.cpp
SRCS+= Utility/Log.cpp
SRCS+= Utility/Logging.cpp
SRCS+= Utility/NameMatches.cpp
SRCS+= Utility/RegisterValue.cpp
SRCS+= Utility/RegularExpression.cpp
SRCS+= Utility/Reproducer.cpp
SRCS+= Utility/Scalar.cpp
SRCS+= Utility/SelectHelper.cpp
SRCS+= Utility/SharingPtr.cpp
SRCS+= Utility/State.cpp
SRCS+= Utility/Status.cpp
SRCS+= Utility/Stream.cpp
SRCS+= Utility/StreamCallback.cpp

View File

@ -8,6 +8,7 @@ PROG_CXX= lldb
.PATH: ${LLDB_SRCS}/docs
CFLAGS+= -I${LLDB_SRCS}/include
CFLAGS+= -I${.OBJDIR}
SRCDIR= tools/lldb/tools/driver
SRCS+= Driver.cpp
@ -23,6 +24,18 @@ DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
.endfor
LLVM_TBLGEN?= llvm-tblgen
INCFILE= Options.inc
TDFILE= ${LLDB_SRCS}/tools/driver/Options.td
GENOPT= -gen-opt-parser-defs
${INCFILE}: ${TDFILE}
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
-o ${.TARGET} ${TDFILE}
TGHDRS+= ${INCFILE}
DPSRCS+= ${TGHDRS}
CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/}
LIBADD+= edit
LIBADD+= panel
LIBADD+= ncursesw