[Lldb-commits] [lldb] ac1dc13 - [Docs] Correct description of lldbinit behavior
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu May 28 13:10:39 PDT 2020
Author: Jonas Devlieghere
Date: 2020-05-28T13:10:33-07:00
New Revision: ac1dc1336ad76d719445d706654ca0ec4ff5557c
URL: https://github.com/llvm/llvm-project/commit/ac1dc1336ad76d719445d706654ca0ec4ff5557c
DIFF: https://github.com/llvm/llvm-project/commit/ac1dc1336ad76d719445d706654ca0ec4ff5557c.diff
LOG: [Docs] Correct description of lldbinit behavior
Jim pointed out that "every time somebody has touched the documentation
on startup files they have stated that we source the application one and
then the global one, even though in actual fact we’ve never done that."
Indeed, when we read the application specific .lldbinit file, the global
one is not read. This patch updates the man page to reflect that.
Added:
Modified:
lldb/docs/man/lldb.rst
Removed:
################################################################################
diff --git a/lldb/docs/man/lldb.rst b/lldb/docs/man/lldb.rst
index 842a693f4751..87be124d788e 100644
--- a/lldb/docs/man/lldb.rst
+++ b/lldb/docs/man/lldb.rst
@@ -303,13 +303,17 @@ CONFIGURATION FILES
-------------------
:program:`lldb` reads things like settings, aliases and commands from the
-.lldbinit file. First, it will read the application specific init file whose
-name is ~/.lldbinit followed by a "-" and the name of the current program. This
-would be ~/.lldbinit-lldb for the command line :program:`lldb` and
-~/.lldbinit-Xcode for Xcode. Secondly, the global ~/.lldbinit will be read.
-Finally, :program:`lldb` will look for an .lldbinit file in the current working
-directory. For security reasons, :program:`lldb` will print a warning and not
-source this file by default. This behavior can be changed by changing the
+.lldbinit file.
+
+First, it will read the application specific init file whose name is
+~/.lldbinit followed by a "-" and the name of the current program. This would
+be ~/.lldbinit-lldb for the command line :program:`lldb` and ~/.lldbinit-Xcode
+for Xcode. If there is no application specific init file, the global
+~/.lldbinit is read.
+
+Secondly, it will look for an .lldbinit file in the current working directory.
+For security reasons, :program:`lldb` will print a warning and not source this
+file by default. This behavior can be changed by changing the
target.load-cwd-lldbinit setting.
To always load the .lldbinit file in the current working directory, add the
More information about the lldb-commits
mailing list