llvm-project/lldb/cmake/modules
Pavel Labath 6c99a3469d [lldb] Add support for a "global" lldbinit file
This patch adds introduces a new kind of an lldbinit file. Unlike the
lldbinit in the home directory (useful for customizing lldb to the needs
of a particular user), or the cwd lldbinit file (useful for
project-specific settings), this file can be used to customize an entire
lldb installation to a particular environment.

The feature is enabled at build time, by setting the
LLDB_GLOBAL_INIT_DIRECTORY variable to a path to a directory which
should contain an "lldbinit" file. Lldb will then load the file at
startup, if it exists, and if automatic init loading has not been
disabled. Relative paths will be resolved (at runtime) relative to the
location of the lldb library (liblldb or LLDB.framework).

The system-wide lldbinit file will be loaded first, before any
$HOME/.lldbinit and $CWD/.lldbinit files are processed, so that those
can override any system-wide settings.

More information can be found on the RFC thread at
<https://discourse.llvm.org/t/rfc-system-wide-lldbinit/59933>.

Differential Revision: https://reviews.llvm.org/D119831
2022-02-18 12:30:22 +01:00
..
AddLLDB.cmake [lldb] Use `GNUInstallDirs` to support custom installation dirs. 2021-12-22 00:28:53 +00:00
FindCursesAndPanel.cmake
FindLibEdit.cmake Quote some more destination paths with variables 2021-12-13 17:29:08 +00:00
FindLuaAndSwig.cmake [lldb/lua] Force Lua version to be 5.3 2021-10-12 21:34:15 +08:00
FindPythonAndSwig.cmake [lldb] Bump the required SWIG version to 3 2021-01-08 08:47:21 -08:00
LLDBConfig.cmake [lldb] Add support for a "global" lldbinit file 2022-02-18 12:30:22 +01:00
LLDBFramework.cmake [lldb] Remove XPCServices symlinking 2021-03-01 11:23:46 -08:00
LLDBGenerateConfig.cmake [lldb] Get rid of HAVE_SYS_TYPES_H 2021-08-03 22:14:56 +02:00
LLDBStandalone.cmake [cmake] Make include(GNUInstallDirs) always below project(..) 2022-01-20 18:59:17 +00:00
debugserverConfig.cmake