[all-commits] [llvm/llvm-project] 6c99a3: [lldb] Add support for a "global" lldbinit file
Pavel Labath via All-commits
all-commits at lists.llvm.org
Fri Feb 18 03:31:32 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6c99a3469d9c0a48fb2a9fec845d284ef39338ee
https://github.com/llvm/llvm-project/commit/6c99a3469d9c0a48fb2a9fec845d284ef39338ee
Author: Pavel Labath <pavel at labath.sk>
Date: 2022-02-18 (Fri, 18 Feb 2022)
Changed paths:
M lldb/cmake/modules/LLDBConfig.cmake
M lldb/include/lldb/API/SBCommandInterpreter.h
M lldb/include/lldb/Host/Config.h.cmake
M lldb/include/lldb/Interpreter/CommandInterpreter.h
M lldb/source/API/SBCommandInterpreter.cpp
M lldb/source/API/SBDebugger.cpp
M lldb/source/Interpreter/CommandInterpreter.cpp
M lldb/tools/driver/Driver.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list