2014-11-10 23:06:15 +08:00
|
|
|
set( LLDB_USED_LIBS
|
2015-03-19 00:56:24 +08:00
|
|
|
lldbBase
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbBreakpoint
|
|
|
|
lldbCommands
|
|
|
|
lldbDataFormatters
|
|
|
|
lldbHost
|
|
|
|
lldbCore
|
|
|
|
lldbExpression
|
2015-03-20 06:00:21 +08:00
|
|
|
lldbInitialization
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbInterpreter
|
|
|
|
lldbSymbol
|
|
|
|
lldbTarget
|
|
|
|
lldbUtility
|
|
|
|
|
|
|
|
# Plugins
|
|
|
|
lldbPluginDisassemblerLLVM
|
|
|
|
lldbPluginSymbolFileDWARF
|
Add support for reading line tables from PDB files.
PDB is Microsoft's debug information format, and although we
cannot yet generate it, we still must be able to consume it.
Reason for this is that debug information for system libraries
(e.g. kernel32, C Runtime Library, etc) only have debug info
in PDB format, so in order to be able to support debugging
of system code, we must support it.
Currently this code should compile on every platform, but on
non-Windows platforms the PDB plugin will return 0 capabilities,
meaning that for now PDB is only supported on Windows. This
may change in the future, but the API is designed in such a way
that this will require few (if any) changes on the LLDB side.
In the future we can just flip a switch and everything will
work.
This patch only adds support for line tables. It does not return
information about functions, types, global variables, or anything
else. This functionality will be added in a followup patch.
Differential Revision: http://reviews.llvm.org/D17363
Reviewed by: Greg Clayton
llvm-svn: 262528
2016-03-03 06:05:52 +08:00
|
|
|
lldbPluginSymbolFilePDB
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbPluginSymbolFileSymtab
|
|
|
|
lldbPluginDynamicLoaderStatic
|
|
|
|
lldbPluginDynamicLoaderPosixDYLD
|
|
|
|
lldbPluginDynamicLoaderHexagonDYLD
|
2015-07-09 02:07:13 +08:00
|
|
|
lldbPluginDynamicLoaderWindowsDYLD
|
2016-11-17 00:04:14 +08:00
|
|
|
|
2015-09-02 02:22:39 +08:00
|
|
|
lldbPluginCPlusPlusLanguage
|
2015-11-05 08:24:36 +08:00
|
|
|
lldbPluginGoLanguage
|
2016-02-26 22:21:23 +08:00
|
|
|
lldbPluginJavaLanguage
|
2015-09-02 02:22:39 +08:00
|
|
|
lldbPluginObjCLanguage
|
|
|
|
lldbPluginObjCPlusPlusLanguage
|
2016-08-02 19:15:55 +08:00
|
|
|
lldbPluginOCamlLanguage
|
2014-11-10 23:06:15 +08:00
|
|
|
|
|
|
|
lldbPluginObjectFileELF
|
|
|
|
lldbPluginObjectFileJIT
|
|
|
|
lldbPluginSymbolVendorELF
|
|
|
|
lldbPluginObjectContainerBSDArchive
|
|
|
|
lldbPluginObjectContainerMachOArchive
|
|
|
|
lldbPluginProcessGDBRemote
|
|
|
|
lldbPluginProcessUtility
|
2015-02-13 02:13:44 +08:00
|
|
|
lldbPluginPlatformAndroid
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbPluginPlatformGDB
|
|
|
|
lldbPluginPlatformFreeBSD
|
|
|
|
lldbPluginPlatformKalimba
|
|
|
|
lldbPluginPlatformLinux
|
2015-11-07 23:31:54 +08:00
|
|
|
lldbPluginPlatformNetBSD
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbPluginPlatformPOSIX
|
|
|
|
lldbPluginPlatformWindows
|
|
|
|
lldbPluginObjectContainerMachOArchive
|
|
|
|
lldbPluginObjectContainerBSDArchive
|
|
|
|
lldbPluginPlatformMacOSX
|
2016-08-19 12:21:48 +08:00
|
|
|
lldbPluginStructuredDataDarwinLog
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbPluginDynamicLoaderMacOSXDYLD
|
|
|
|
lldbPluginUnwindAssemblyInstEmulation
|
|
|
|
lldbPluginUnwindAssemblyX86
|
|
|
|
lldbPluginAppleObjCRuntime
|
2015-04-10 00:49:25 +08:00
|
|
|
lldbPluginRenderScriptRuntime
|
2015-10-07 04:29:31 +08:00
|
|
|
lldbPluginLanguageRuntimeGo
|
2016-02-26 22:21:23 +08:00
|
|
|
lldbPluginLanguageRuntimeJava
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbPluginCXXItaniumABI
|
|
|
|
lldbPluginABIMacOSX_arm
|
|
|
|
lldbPluginABIMacOSX_arm64
|
|
|
|
lldbPluginABIMacOSX_i386
|
2015-04-29 18:49:45 +08:00
|
|
|
lldbPluginABISysV_arm
|
2015-04-29 19:52:35 +08:00
|
|
|
lldbPluginABISysV_arm64
|
2015-06-26 01:50:15 +08:00
|
|
|
lldbPluginABISysV_i386
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbPluginABISysV_x86_64
|
|
|
|
lldbPluginABISysV_hexagon
|
|
|
|
lldbPluginABISysV_ppc
|
|
|
|
lldbPluginABISysV_ppc64
|
2015-06-18 15:02:10 +08:00
|
|
|
lldbPluginABISysV_mips
|
2015-06-19 12:25:07 +08:00
|
|
|
lldbPluginABISysV_mips64
|
2016-04-14 22:28:34 +08:00
|
|
|
lldbPluginABISysV_s390x
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbPluginInstructionARM
|
|
|
|
lldbPluginInstructionARM64
|
2015-05-15 14:53:30 +08:00
|
|
|
lldbPluginInstructionMIPS
|
2015-03-18 17:21:29 +08:00
|
|
|
lldbPluginInstructionMIPS64
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbPluginObjectFilePECOFF
|
2015-09-17 05:20:44 +08:00
|
|
|
lldbPluginOSGo
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbPluginOSPython
|
|
|
|
lldbPluginMemoryHistoryASan
|
|
|
|
lldbPluginInstrumentationRuntimeAddressSanitizer
|
2016-03-24 00:54:23 +08:00
|
|
|
lldbPluginInstrumentationRuntimeThreadSanitizer
|
2015-03-02 23:14:50 +08:00
|
|
|
lldbPluginSystemRuntimeMacOSX
|
|
|
|
lldbPluginProcessElfCore
|
2016-09-01 19:29:53 +08:00
|
|
|
lldbPluginProcessMinidump
|
2015-03-02 23:14:50 +08:00
|
|
|
lldbPluginJITLoaderGDB
|
2015-09-03 12:17:57 +08:00
|
|
|
lldbPluginExpressionParserClang
|
2015-11-03 03:30:40 +08:00
|
|
|
lldbPluginExpressionParserGo
|
2014-11-10 23:06:15 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# Windows-only libraries
|
|
|
|
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
|
|
|
list(APPEND LLDB_USED_LIBS
|
2015-10-29 02:21:45 +08:00
|
|
|
lldbPluginProcessWindowsCommon
|
2014-11-10 23:06:15 +08:00
|
|
|
Ws2_32
|
2015-02-12 02:21:28 +08:00
|
|
|
Rpcrt4
|
2014-11-10 23:06:15 +08:00
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
# Linux-only libraries
|
|
|
|
if ( CMAKE_SYSTEM_NAME MATCHES "Linux" )
|
|
|
|
list(APPEND LLDB_USED_LIBS
|
|
|
|
lldbPluginProcessLinux
|
|
|
|
lldbPluginProcessPOSIX
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
# FreeBSD-only libraries
|
|
|
|
if ( CMAKE_SYSTEM_NAME MATCHES "FreeBSD" )
|
|
|
|
list(APPEND LLDB_USED_LIBS
|
|
|
|
lldbPluginProcessFreeBSD
|
|
|
|
lldbPluginProcessPOSIX
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
2015-11-07 23:31:54 +08:00
|
|
|
# NetBSD-only libraries
|
|
|
|
if ( CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
|
|
|
|
list(APPEND LLDB_USED_LIBS
|
|
|
|
lldbPluginProcessPOSIX
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
2014-11-10 23:06:15 +08:00
|
|
|
# Darwin-only libraries
|
|
|
|
if ( CMAKE_SYSTEM_NAME MATCHES "Darwin" )
|
|
|
|
list(APPEND LLDB_USED_LIBS
|
|
|
|
lldbPluginDynamicLoaderDarwinKernel
|
2015-01-15 05:01:15 +08:00
|
|
|
lldbPluginObjectFileMachO
|
|
|
|
lldbPluginProcessMachCore
|
2014-11-10 23:06:15 +08:00
|
|
|
lldbPluginProcessMacOSXKernel
|
|
|
|
lldbPluginSymbolVendorMacOSX
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set( CLANG_USED_LIBS
|
|
|
|
clangAnalysis
|
|
|
|
clangAST
|
|
|
|
clangBasic
|
|
|
|
clangCodeGen
|
|
|
|
clangDriver
|
|
|
|
clangEdit
|
|
|
|
clangFrontend
|
|
|
|
clangLex
|
|
|
|
clangParse
|
|
|
|
clangRewrite
|
|
|
|
clangRewriteFrontend
|
|
|
|
clangSema
|
|
|
|
clangSerialization
|
|
|
|
)
|
|
|
|
|
|
|
|
set(LLDB_SYSTEM_LIBS)
|
2016-12-05 22:57:19 +08:00
|
|
|
if (NOT LLDB_DISABLE_LIBEDIT)
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS edit)
|
|
|
|
endif()
|
|
|
|
if (NOT LLDB_DISABLE_CURSES)
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS ${CURSES_LIBRARIES})
|
|
|
|
if(LLVM_ENABLE_TERMINFO AND HAVE_TERMINFO)
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS ${TERMINFO_LIBS})
|
2015-03-06 07:22:54 +08:00
|
|
|
endif()
|
2014-11-10 23:06:15 +08:00
|
|
|
endif()
|
2016-06-29 20:30:18 +08:00
|
|
|
|
|
|
|
if (NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB )
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS atomic)
|
|
|
|
endif()
|
|
|
|
|
2015-09-19 01:14:49 +08:00
|
|
|
# On FreeBSD/NetBSD backtrace() is provided by libexecinfo, not libc.
|
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD" OR CMAKE_SYSTEM_NAME MATCHES "NetBSD")
|
2014-11-10 23:06:15 +08:00
|
|
|
list(APPEND LLDB_SYSTEM_LIBS execinfo)
|
|
|
|
endif()
|
|
|
|
|
2015-01-08 05:35:07 +08:00
|
|
|
if (NOT LLDB_DISABLE_PYTHON AND NOT LLVM_BUILD_STATIC)
|
2014-11-10 23:06:15 +08:00
|
|
|
list(APPEND LLDB_SYSTEM_LIBS ${PYTHON_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS ${system_libs})
|
|
|
|
|
2015-01-08 05:35:07 +08:00
|
|
|
if (LLVM_BUILD_STATIC)
|
2015-07-17 07:45:08 +08:00
|
|
|
if (NOT LLDB_DISABLE_PYTHON)
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS python2.7 util)
|
|
|
|
endif()
|
|
|
|
if (NOT LLDB_DISABLE_CURSES)
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS gpm)
|
|
|
|
endif()
|
2015-01-08 05:35:07 +08:00
|
|
|
endif()
|
|
|
|
|
Add support for reading line tables from PDB files.
PDB is Microsoft's debug information format, and although we
cannot yet generate it, we still must be able to consume it.
Reason for this is that debug information for system libraries
(e.g. kernel32, C Runtime Library, etc) only have debug info
in PDB format, so in order to be able to support debugging
of system code, we must support it.
Currently this code should compile on every platform, but on
non-Windows platforms the PDB plugin will return 0 capabilities,
meaning that for now PDB is only supported on Windows. This
may change in the future, but the API is designed in such a way
that this will require few (if any) changes on the LLDB side.
In the future we can just flip a switch and everything will
work.
This patch only adds support for line tables. It does not return
information about functions, types, global variables, or anything
else. This functionality will be added in a followup patch.
Differential Revision: http://reviews.llvm.org/D17363
Reviewed by: Greg Clayton
llvm-svn: 262528
2016-03-03 06:05:52 +08:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
2014-11-10 23:06:15 +08:00
|
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
|
|
interpreter
|
|
|
|
asmparser
|
|
|
|
bitreader
|
|
|
|
bitwriter
|
|
|
|
codegen
|
2016-09-08 00:14:00 +08:00
|
|
|
demangle
|
2014-11-10 23:06:15 +08:00
|
|
|
ipo
|
|
|
|
selectiondag
|
|
|
|
bitreader
|
|
|
|
mc
|
|
|
|
mcjit
|
|
|
|
core
|
|
|
|
mcdisassembler
|
|
|
|
executionengine
|
2015-06-04 11:12:37 +08:00
|
|
|
runtimedyld
|
2014-11-10 23:06:15 +08:00
|
|
|
option
|
2015-01-15 05:01:15 +08:00
|
|
|
support
|
2016-05-07 01:03:09 +08:00
|
|
|
coverage
|
2016-08-03 18:46:42 +08:00
|
|
|
target
|
2014-11-10 23:06:15 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if ( NOT LLDB_DISABLE_PYTHON )
|
|
|
|
set_source_files_properties(${LLDB_WRAP_PYTHON} PROPERTIES GENERATED 1)
|
2015-04-03 04:57:38 +08:00
|
|
|
if (CLANG_CL)
|
|
|
|
set_source_files_properties(${LLDB_WRAP_PYTHON} PROPERTIES COMPILE_FLAGS -Wno-unused-function)
|
|
|
|
endif()
|
2014-11-10 23:06:15 +08:00
|
|
|
if (LLVM_COMPILER_IS_GCC_COMPATIBLE AND
|
|
|
|
NOT "${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
|
|
|
|
set_property(SOURCE ${LLDB_WRAP_PYTHON}
|
2015-10-15 16:27:01 +08:00
|
|
|
APPEND_STRING PROPERTY COMPILE_FLAGS " -Wno-sequence-point -Wno-cast-qual")
|
2014-11-10 23:06:15 +08:00
|
|
|
endif ()
|
|
|
|
endif()
|