llvm-project/lldb/unittests
Stefan Granitz 6e6b4ac18e [CMake] Streamline code signing for debugserver and pass entitlements to extended llvm_codesign
Summary:
Use llvm_codesign to sign debugserver with entitlements.
Set global LLVM_CODESIGNING_IDENTITY from LLDB_CODESIGN_IDENTITY (if given).
Pass through ENTITLEMENTS from add_lldb_executable to add_llvm_executable.
Handle reconfigurations correctly.

We have a lot of cases, make them explicit:

(1) build and sign debugserver, if all conditions apply:
* LLDB_NO_DEBUGSERVER=OFF (default)
* On Darwin: LLDB_USE_SYSTEM_DEBUGSERVER=OFF (default)
* On Darwin: LLVM_CODESIGNING_IDENTITY == lldb_codesign

(2) use system debugserver, if on Darwin and any of:
* LLDB_USE_SYSTEM_DEBUGSERVER=ON and found on system (explicit case)
* LLVM_CODESIGNING_IDENTITY != lldb_codesign and found on system (fallback case)

(3) debugserver will not be available, in case of:
* LLDB_NO_DEBUGSERVER=ON
* On Darwin: LLVM_CODESIGNING_IDENTITY != lldb_codesign and not found on system

(4) error state, in case of:
* LLDB_USE_SYSTEM_DEBUGSERVER=ON and not found on system
* LLDB_USE_SYSTEM_DEBUGSERVER=ON and LLDB_NO_DEBUGSERVER=ON

Reviewers: xiaobai, beanz, vsk, JDevlieghere

Subscribers: mgorny, lldb-commits, llvm-commits

Differential Revision: https://reviews.llvm.org/D54476

llvm-svn: 347305
2018-11-20 14:10:33 +00:00
..
Breakpoint Rename Error -> Status. 2017-05-12 04:51:55 +00:00
Core Move DataExtractorTest to unittests/Utility 2018-11-14 14:58:36 +00:00
Disassembler If we fail to get an armv7em-- disassembler from llvm, skip the 2018-09-12 19:30:03 +00:00
Editline [FileSystem] Move path resolution logic out of FileSpec 2018-11-01 21:05:36 +00:00
Expression Remove Go debugger plugin 2018-11-05 19:33:59 +00:00
Host Remove header grouping comments. 2018-11-11 23:17:06 +00:00
Interpreter Revert "[FileSystem] Make use of FS in TildeExpressionResolver" 2018-11-09 01:59:28 +00:00
Language CPlusPlusLanguage: Use new demangler API to implement type substitution 2018-11-06 15:41:37 +00:00
ObjectFile [ObjectFile] Prefer reinterpret_cast<> 2018-11-06 17:42:14 +00:00
Platform [FileSystem] Move path resolution logic out of FileSpec 2018-11-01 21:05:36 +00:00
Process Fix compilation failure in unit tests on Windows. 2018-11-15 22:03:49 +00:00
ScriptInterpreter [FileSystem] Open File instances through the FileSystem. 2018-11-02 22:34:51 +00:00
Signals Make LLDB skip server-client roundtrip for signals that don't require any actions 2017-03-07 21:34:40 +00:00
Symbol Remove Go debugger plugin 2018-11-05 19:33:59 +00:00
SymbolFile Remove header grouping comments. 2018-11-11 23:17:06 +00:00
Target [FileSystem] Move path resolution logic out of FileSpec 2018-11-01 21:05:36 +00:00
TestingSupport Revert "[FileSystem] Make use of FS in TildeExpressionResolver" 2018-11-09 01:59:28 +00:00
UnwindAssembly [x86] Fix issues with a realigned stack in MSVC compiled applications 2018-10-30 10:07:08 +00:00
Utility Move DataExtractorTest to unittests/Utility 2018-11-14 14:58:36 +00:00
debugserver [CMake] Need to set WITH_LOCKDOWN on debugserver target 2017-09-06 20:15:43 +00:00
tools [CMake] Streamline code signing for debugserver and pass entitlements to extended llvm_codesign 2018-11-20 14:10:33 +00:00
CMakeLists.txt Add the Disassembler unit test dir. 2018-09-07 18:51:10 +00:00
gtest_common.h [Windows] Remove the #include <eh.h> hack. 2017-03-03 20:21:59 +00:00