llvm-project/lldb/source/API
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
..
CMakeLists.txt [lldb] Remove the requirement for windows clients to specify -DIMPORT_LIBLLDB 2022-01-19 12:49:47 +01:00
SBAddress.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBAttachInfo.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBBlock.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBBreakpoint.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBBreakpointLocation.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBBreakpointName.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBBreakpointOptionCommon.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBBreakpointOptionCommon.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
SBBroadcaster.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBCommandInterpreter.cpp [lldb] Add support for a "global" lldbinit file 2022-02-18 12:30:22 +01:00
SBCommandInterpreterRunOptions.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBCommandReturnObject.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBCommunication.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBCompileUnit.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBData.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBDebugger.cpp [lldb] Add support for a "global" lldbinit file 2022-02-18 12:30:22 +01:00
SBDeclaration.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBEnvironment.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBError.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBEvent.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBExecutionContext.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBExpressionOptions.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBFile.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBFileSpec.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBFileSpecList.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBFrame.cpp [lldb] Rename Logging.h to LLDBLog.h and clean up includes 2022-02-03 14:47:01 +01:00
SBFunction.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBHostOS.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBInstruction.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBInstructionList.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBLanguageRuntime.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBLaunchInfo.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBLineEntry.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBListener.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBMemoryRegionInfo.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBMemoryRegionInfoList.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBModule.cpp [lldb/API] Add ability to check if module is backed by a file on disk 2022-01-26 20:40:24 +01:00
SBModuleSpec.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBPlatform.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBProcess.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBProcessInfo.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBQueue.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBQueueItem.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBReproducer.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBSection.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBSourceManager.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBStream.cpp [lldb] Rename Logging.h to LLDBLog.h and clean up includes 2022-02-03 14:47:01 +01:00
SBStringList.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBStructuredData.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBSymbol.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBSymbolContext.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBSymbolContextList.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBTarget.cpp [lldb] Rename Logging.h to LLDBLog.h and clean up includes 2022-02-03 14:47:01 +01:00
SBThread.cpp [lldb] [gdb-remote] Support getting siginfo via API 2022-01-28 17:47:47 +01:00
SBThreadCollection.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBThreadPlan.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBTrace.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBType.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBTypeCategory.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBTypeEnumMember.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBTypeFilter.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBTypeFormat.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBTypeNameSpecifier.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBTypeSummary.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBTypeSynthetic.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBUnixSignals.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBValue.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBValueList.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBVariablesOptions.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SBWatchpoint.cpp [lldb] Decouple instrumentation from the reproducers 2022-01-20 18:06:14 -08:00
SystemInitializerFull.cpp [lldb] Use nullptr instead of 0 or NULL (NFC) 2022-01-01 11:54:25 -08:00
SystemInitializerFull.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
Utils.h [lldb] Update header guards to be consistent and compliant with LLVM (NFC) 2020-02-17 23:15:40 -08:00
liblldb-private.exports [lldb/lua] Supplement Lua bindings for lldb module 2021-10-12 22:10:21 +08:00
liblldb.exports [lldb/lua] Supplement Lua bindings for lldb module 2021-10-12 22:10:21 +08:00