llvm-project/lldb/source
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
..
API [lldb] Add support for a "global" lldbinit file 2022-02-18 12:30:22 +01:00
Breakpoint [lldb] BreakpointResolver::CreateFromStructuredData Gardening (NFC) 2022-02-16 10:38:05 -08:00
Commands [lldb] Fix memory leak in CommandObjectType 2022-02-16 09:05:08 -08:00
Core Fix a double debug info size counting in top level stats for "statistics dump". 2022-02-10 10:55:18 -08:00
DataFormatters [lldb] Rename Logging.h to LLDBLog.h and clean up includes 2022-02-03 14:47:01 +01:00
Expression Cleanup LLVMDWARFDebugInfo 2022-02-15 09:16:03 +01:00
Host [lldb] Rename Logging.h to LLDBLog.h and clean up includes 2022-02-03 14:47:01 +01:00
Initialization [lldb] Rename Logging.h to LLDBLog.h and clean up includes 2022-02-03 14:47:01 +01:00
Interpreter [lldb] Add support for a "global" lldbinit file 2022-02-18 12:30:22 +01:00
Plugins [LLDB] Replace use of double underscore in identifiers 2022-02-16 11:54:45 -08:00
Symbol Cleanup LLVMDWARFDebugInfo 2022-02-15 09:16:03 +01:00
Target Fix a double debug info size counting in top level stats for "statistics dump". 2022-02-10 10:55:18 -08:00
Utility [lldb] Don't rely on wrapping in PutRawBytes/PutBytesAsRawHex8 2022-02-15 20:38:25 -08:00
Version [lldb] Fix LLDB_FULL_VERSION_STRING 2022-01-19 14:20:22 -08:00
CMakeLists.txt [lldb] Make lldbVersion a full fledged library 2021-12-08 15:14:34 -08:00