Source-Changes-HG archive

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

[src/trunk]: src Hook up initial build infrastructure for LLDB. Update LLVM/C...



details:   https://anonhg.NetBSD.org/src/rev/fe794dc0e433
branches:  trunk
changeset: 790226:fe794dc0e433
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Sep 29 12:11:59 2013 +0000

description:
Hook up initial build infrastructure for LLDB. Update LLVM/Clang
snapshot to r191390 for some required changed. Re-enable static analyzer
in Clang.

diffstat:

 distrib/sets/lists/comp/mi                                              |    3 +-
 distrib/sets/sets.subr                                                  |    5 +-
 external/bsd/llvm/Makefile                                              |    3 +-
 external/bsd/llvm/Makefile.inc                                          |   14 +-
 external/bsd/llvm/bin/Makefile                                          |    7 +-
 external/bsd/llvm/bin/lldb/Makefile                                     |  151 ++++++++++
 external/bsd/llvm/lib/Makefile                                          |   64 +++-
 external/bsd/llvm/lib/Makefile.inc                                      |    6 +-
 external/bsd/llvm/lib/libLLVMDebugInfo/Makefile                         |    6 +-
 external/bsd/llvm/lib/libLLVMLTO/Makefile                               |   16 +
 external/bsd/llvm/lib/liblldbAPI/Makefile                               |   61 ++++
 external/bsd/llvm/lib/liblldbBreakpoint/Makefile                        |   35 ++
 external/bsd/llvm/lib/liblldbCommands/Makefile                          |   41 ++
 external/bsd/llvm/lib/liblldbCore/Makefile                              |   85 +++++
 external/bsd/llvm/lib/liblldbDataFormatters/Makefile                    |   34 ++
 external/bsd/llvm/lib/liblldbExpression/Makefile                        |   33 ++
 external/bsd/llvm/lib/liblldbHostCommon/Makefile                        |   28 +
 external/bsd/llvm/lib/liblldbHostNetBSD/Makefile                        |   15 +
 external/bsd/llvm/lib/liblldbInterpreter/Makefile                       |   56 +++
 external/bsd/llvm/lib/liblldbLog/Makefile                               |   16 +
 external/bsd/llvm/lib/liblldbPluginABIMacOSX_arm/Makefile               |   15 +
 external/bsd/llvm/lib/liblldbPluginABIMacOSX_i386/Makefile              |   15 +
 external/bsd/llvm/lib/liblldbPluginABISysV_x86_64/Makefile              |   15 +
 external/bsd/llvm/lib/liblldbPluginAppleObjCRuntime/Makefile            |   20 +
 external/bsd/llvm/lib/liblldbPluginCXXItaniumABI/Makefile               |   15 +
 external/bsd/llvm/lib/liblldbPluginDisassemblerLLVM/Makefile            |   15 +
 external/bsd/llvm/lib/liblldbPluginDynamicLoaderMacOSXDYLD/Makefile     |   15 +
 external/bsd/llvm/lib/liblldbPluginDynamicLoaderPosixDYLD/Makefile      |   17 +
 external/bsd/llvm/lib/liblldbPluginDynamicLoaderStatic/Makefile         |   15 +
 external/bsd/llvm/lib/liblldbPluginInstructionARM/Makefile              |   16 +
 external/bsd/llvm/lib/liblldbPluginObjectContainerBSDArchive/Makefile   |   15 +
 external/bsd/llvm/lib/liblldbPluginObjectContainerMachOArchive/Makefile |   15 +
 external/bsd/llvm/lib/liblldbPluginObjectFileELF/Makefile               |   16 +
 external/bsd/llvm/lib/liblldbPluginObjectFileMachO/Makefile             |   15 +
 external/bsd/llvm/lib/liblldbPluginObjectFilePECOFF/Makefile            |   15 +
 external/bsd/llvm/lib/liblldbPluginPlatformGDB/Makefile                 |   15 +
 external/bsd/llvm/lib/liblldbPluginPlatformLinux/Makefile               |   15 +
 external/bsd/llvm/lib/liblldbPluginPlatformMacOSX/Makefile              |   19 +
 external/bsd/llvm/lib/liblldbPluginPlatformNetBSD/Makefile              |   15 +
 external/bsd/llvm/lib/liblldbPluginPlatformPOSIX/Makefile               |   15 +
 external/bsd/llvm/lib/liblldbPluginProcessElfCore/Makefile              |   17 +
 external/bsd/llvm/lib/liblldbPluginProcessGDBRemote/Makefile            |   21 +
 external/bsd/llvm/lib/liblldbPluginProcessMachCore/Makefile             |   16 +
 external/bsd/llvm/lib/liblldbPluginProcessNetBSD/Makefile               |   16 +
 external/bsd/llvm/lib/liblldbPluginProcessPOSIX/Makefile                |   32 ++
 external/bsd/llvm/lib/liblldbPluginProcessUtility/Makefile              |   31 ++
 external/bsd/llvm/lib/liblldbPluginSymbolFileDWARF/Makefile             |   38 ++
 external/bsd/llvm/lib/liblldbPluginSymbolFileSymtab/Makefile            |   15 +
 external/bsd/llvm/lib/liblldbPluginSymbolVendorELF/Makefile             |   15 +
 external/bsd/llvm/lib/liblldbPluginUnwindAssemblyInstEmulation/Makefile |   15 +
 external/bsd/llvm/lib/liblldbPluginUnwindAssemblyX86/Makefile           |   15 +
 external/bsd/llvm/lib/liblldbSymbol/Makefile                            |   41 ++
 external/bsd/llvm/lib/liblldbTarget/Makefile                            |   52 +++
 external/bsd/llvm/lib/liblldbUtility/Makefile                           |   22 +
 external/bsd/llvm/link.mk                                               |    8 +-
 share/mk/bsd.own.mk                                                     |    4 +-
 56 files changed, 1330 insertions(+), 20 deletions(-)

diffs (truncated from 1713 to 300 lines):

diff -r 59e0f6a99b9a -r fe794dc0e433 distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Sun Sep 29 07:43:43 2013 +0000
+++ b/distrib/sets/lists/comp/mi        Sun Sep 29 12:11:59 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.1838 2013/09/19 17:29:06 rmind Exp $
+#      $NetBSD: mi,v 1.1839 2013/09/29 12:11:59 joerg Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -51,6 +51,7 @@
 ./usr/bin/lex                                  comp-c-bin
 ./usr/bin/lint                                 comp-c-bin
 ./usr/bin/lld                                  comp-c-bin              lld
+./usr/bin/lldb                                 comp-c-bin              lldb
 ./usr/bin/llvm-tblgen                          comp-c-bin              llvm
 ./usr/bin/lorder                               comp-util-bin
 ./usr/bin/luac                                 comp-util-bin
diff -r 59e0f6a99b9a -r fe794dc0e433 distrib/sets/sets.subr
--- a/distrib/sets/sets.subr    Sun Sep 29 07:43:43 2013 +0000
+++ b/distrib/sets/sets.subr    Sun Sep 29 12:11:59 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: sets.subr,v 1.152 2013/09/09 13:04:57 joerg Exp $
+#      $NetBSD: sets.subr,v 1.153 2013/09/29 12:11:59 joerg Exp $
 #
 
 #
@@ -179,7 +179,7 @@
 # In each file, a record consists of a path and a System Package name,
 # separated by whitespace. E.g.,
 #
-#      # $NetBSD: sets.subr,v 1.152 2013/09/09 13:04:57 joerg Exp $
+#      # $NetBSD: sets.subr,v 1.153 2013/09/29 12:11:59 joerg Exp $
 #      .                       base-sys-root   [keyword[,...]]
 #      ./altroot               base-sys-root
 #      ./bin                   base-sys-root
@@ -231,6 +231,7 @@
 #      libcxx                  ${MKLIBCXX} != no
 #      libstdcxx               ${MKLIBSTDCXX} != no
 #      lld                     ${MKLLD} != no
+#      lldb                    ${MKLLDB} != no
 #      llvm                    ${MKLLVM} != no
 #      lvm                     ${MKLVM} != no
 #      makemandb               ${MKMAKEMANDB} != no
diff -r 59e0f6a99b9a -r fe794dc0e433 external/bsd/llvm/Makefile
--- a/external/bsd/llvm/Makefile        Sun Sep 29 07:43:43 2013 +0000
+++ b/external/bsd/llvm/Makefile        Sun Sep 29 12:11:59 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.4 2013/09/02 14:34:55 joerg Exp $
+#      $NetBSD: Makefile,v 1.5 2013/09/29 12:11:59 joerg Exp $
 
 .include <bsd.init.mk>
 
@@ -19,6 +19,7 @@
        svn co -r ${COMPILER_RT_REVISION} ${SVN_ROOT}/compiler-rt/trunk \
            ${COMPILER_RT_SRCDIR}
        svn co -r ${LLD_REVISION} ${SVN_ROOT}/lld/trunk ${LLD_SRCDIR}
+       svn co -r ${LLDB_REVISION} ${SVN_ROOT}/lldb/trunk ${LLDB_SRCDIR}
        svn co -r ${LLVM_REVISION} ${SVN_ROOT}/llvm/trunk ${LLVM_SRCDIR}
 
 checkout-mclinker:
diff -r 59e0f6a99b9a -r fe794dc0e433 external/bsd/llvm/Makefile.inc
--- a/external/bsd/llvm/Makefile.inc    Sun Sep 29 07:43:43 2013 +0000
+++ b/external/bsd/llvm/Makefile.inc    Sun Sep 29 12:11:59 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.55 2013/09/21 22:28:12 joerg Exp $
+#      $NetBSD: Makefile.inc,v 1.56 2013/09/29 12:11:59 joerg Exp $
 
 .if !defined(LLVM_TOPLEVEL_MK)
 LLVM_TOPLEVEL_MK=
@@ -7,10 +7,11 @@
 
 SVN_ROOT=              http://llvm.org/svn/llvm-project
 
-COMMON_REVISION=       191105
+COMMON_REVISION=       191390
 CLANG_REVISION=                ${COMMON_REVISION}
 COMPILER_RT_REVISION=  ${COMMON_REVISION}
 LLD_REVISION=          ${COMMON_REVISION}
+LLDB_REVISION=         ${COMMON_REVISION}
 LLVM_REVISION=         ${COMMON_REVISION}
 
 MCLINKER_REVISION=     deeb2a77b4165827316f88e0a7ba4ba6b743a080
@@ -22,14 +23,16 @@
 COMPILER_RT_SRCDIR:=   ${.PARSEDIR}/dist/compiler-rt
 CLANG_SRCDIR:= ${.PARSEDIR}/dist/clang
 LLD_SRCDIR:=   ${.PARSEDIR}/dist/lld
+LLDB_SRCDIR:=  ${.PARSEDIR}/dist/lldb
 LLVM_SRCDIR:=  ${.PARSEDIR}/dist/llvm
 MCLINKER_SRCDIR:=      ${.PARSEDIR}/dist/mclinker
 LLVM_TOPLEVEL:=        ${.PARSEDIR}
 
 CPPFLAGS+=     -I. -I${CLANG_SRCDIR}/include -I${LLD_SRCDIR}/include \
                -I${LLVM_SRCDIR}/include -I${MCLINKER_SRCDIR}/include \
+               -I${LLDB_SRCDIR}/include \
                -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS \
-               -D__STDC_FORMAT_MACROS
+               -D__STDC_FORMAT_MACROS -DCLANG_ENABLE_STATIC_ANALYZER
 
 .if defined(HOSTLIB) || defined(HOSTPROG)
 LLVM_INCLUDE_CONFIG=   ${LLVM_TOOLCONF_OBJDIR}/config/include
@@ -48,9 +51,12 @@
 MCLINKER_INCLUDE_CONFIG= ${LLVM_TOPLEVEL}/config/mclinker
 LLVM_INCLUDE_OBJDIR!=  cd ${LLVM_TOPLEVEL}/include && ${PRINTOBJDIR}
 
-.if ${MKLLD:Uno} == "yes"
+.if ${MKLLD:Uno} == "yes" || ${MKLLDB:Uno} == "yes"
 CPPFLAGS+=     -std=c++11
 .endif
+.if ${MKLLDB:Uno} == "yes"
+CPPFLAGS+=     -DLLDB_DISABLE_PYTHON
+.endif
 CXXFLAGS+=     -fno-rtti -fno-exceptions
 CXXFLAGS+=     -ffunction-sections -fdata-sections
 LDFLAGS+=      -Wl,--gc-sections
diff -r 59e0f6a99b9a -r fe794dc0e433 external/bsd/llvm/bin/Makefile
--- a/external/bsd/llvm/bin/Makefile    Sun Sep 29 07:43:43 2013 +0000
+++ b/external/bsd/llvm/bin/Makefile    Sun Sep 29 12:11:59 2013 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.11 2013/09/02 14:34:55 joerg Exp $
+#      $NetBSD: Makefile,v 1.12 2013/09/29 12:11:59 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -11,6 +11,11 @@
        lld
 .endif
 
+.if ${MKLLDB} != "no"
+SUBDIR+=       \
+       lldb
+.endif
+
 .if ${MKMCLINKER} != "no"
 SUBDIR+=       \
        llvm-mcld
diff -r 59e0f6a99b9a -r fe794dc0e433 external/bsd/llvm/bin/lldb/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/llvm/bin/lldb/Makefile       Sun Sep 29 12:11:59 2013 +0000
@@ -0,0 +1,151 @@
+#      $NetBSD: Makefile,v 1.1 2013/09/29 12:11:59 joerg Exp $
+
+PROG_CXX=      lldb
+NOMAN=         yes
+
+.include <bsd.init.mk>
+
+.PATH: ${LLDB_SRCDIR}/tools/driver
+
+SRCS=  Driver.cpp \
+       IOChannel.cpp
+
+CPPFLAGS.Driver.cpp+=  -Dgetopt_long_only=getopt_long
+
+LLDB_LIBS+= \
+       API \
+       Log \
+       PluginInstructionARM \
+       PluginProcessGDBRemote \
+       PluginProcessMachCore \
+       PluginProcessPOSIX \
+       PluginProcessUtility \
+       PluginSymbolFileDWARF \
+       PluginSymbolFileSymtab \
+       PluginSymbolVendorELF \
+       PluginUnwindAssemblyInstEmulation \
+       PluginUnwindAssemblyX86 \
+       Breakpoint \
+       Expression \
+       Symbol \
+       Target \
+       Utility \
+       HostCommon \
+       Interpreter \
+       Commands \
+       Breakpoint \
+       Core \
+       DataFormatters \
+       PluginABIMacOSX_arm \
+       PluginABIMacOSX_i386 \
+       PluginABISysV_x86_64 \
+       PluginAppleObjCRuntime \
+       PluginCXXItaniumABI \
+       PluginDisassemblerLLVM \
+       PluginDynamicLoaderMacOSXDYLD \
+       PluginDynamicLoaderPosixDYLD \
+       PluginDynamicLoaderStatic \
+       PluginObjectContainerBSDArchive \
+       PluginObjectContainerMachOArchive \
+       PluginObjectFileELF \
+       PluginObjectFileMachO \
+       PluginObjectFilePECOFF \
+       PluginPlatformNetBSD \
+       PluginPlatformGDB \
+       PluginPlatformLinux \
+       PluginPlatformMacOSX \
+       PluginPlatformPOSIX \
+       PluginProcessElfCore \
+       PluginProcessNetBSD \
+       PluginProcessPOSIX \
+       PluginProcessUtility \
+       HostCommon \
+       HostNetBSD \
+       Interpreter \
+
+CLANG_LIBS+= \
+       clangFrontend \
+       clangDriver \
+       clangSerialization \
+       clangCodeGen \
+       clangParse \
+       clangSema \
+       clangEdit \
+       clangAnalysis \
+       clangAST \
+       clangLex \
+       clangBasic
+
+LLVM_LIBS+= \
+       JIT \
+       MCJIT \
+       RuntimeDyld \
+       ExecutionEngine \
+       ObjCARC \
+       ipo \
+       IRReader \
+       AsmParser \
+       BitReader \
+       BitWriter \
+       MCDisassembler \
+       AArch64CodeGen \
+       AArch64TargetInfo \
+       AArch64AsmParser \
+       AArch64MCTargetDesc \
+       AArch64AsmPrinter \
+       AArch64Disassembler \
+       AArch64Utils \
+       ARMCodeGen \
+       ARMTargetInfo \
+       ARMAsmParser \
+       ARMMCTargetDesc \
+       ARMAsmPrinter \
+       ARMDisassembler \
+       MipsCodeGen \
+       MipsTargetInfo \
+       MipsAsmParser \
+       MipsDisassembler \
+       MipsMCTargetDesc \
+       MipsAsmPrinter \
+       PowerPCCodeGen \
+       PowerPCAsmParser \
+       PowerPCTargetInfo \
+       PowerPCMCTargetDesc \
+       PowerPCAsmPrinter \
+       SparcCodeGen \
+       SparcTargetInfo \
+       SparcMCTargetDesc \
+       X86CodeGen \
+       X86TargetInfo \
+       X86MCTargetDesc \
+       X86AsmParser \
+       X86Disassembler \
+       X86AsmPrinter \
+       X86Utils \
+       Object \
+       SelectionDAG \
+       AsmPrinter \
+       CodeGen \
+       Vectorize \
+       Target \
+       InstCombine \
+       Instrumentation \
+       ScalarOpts \
+       MCDisassembler \
+       MCParser \
+       MC \
+       Linker \
+       TransformsUtils \
+       Analysis \
+       ipa \
+       IR \
+       Option \
+       Support
+
+LDADD+=        -ledit -lterminfo -lexecinfo
+DPADD+=        ${LIBEDIT} ${LIBTERMINFO} ${LIBEXECINFO}
+DBG=-g
+
+.include "${.PARSEDIR}/../../link.mk"
+
+.include <bsd.prog.mk>
diff -r 59e0f6a99b9a -r fe794dc0e433 external/bsd/llvm/lib/Makefile
--- a/external/bsd/llvm/lib/Makefile    Sun Sep 29 07:43:43 2013 +0000
+++ b/external/bsd/llvm/lib/Makefile    Sun Sep 29 12:11:59 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2013/09/02 14:34:55 joerg Exp $
+# $NetBSD: Makefile,v 1.34 2013/09/29 12:11:59 joerg Exp $
 
 .include <bsd.own.mk>
 
@@ -78,17 +78,23 @@



Home | Main Index | Thread Index | Old Index