Skip to content

Commit c4703fe

Browse files
committed
[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. (cherry picked from commit ac1dc13)
1 parent a3ff3d4 commit c4703fe

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

lldb/docs/man/lldb.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,17 @@ CONFIGURATION FILES
296296
-------------------
297297

298298
:program:`lldb` reads things like settings, aliases and commands from the
299-
.lldbinit file. First, it will read the application specific init file whose
300-
name is ~/.lldbinit followed by a "-" and the name of the current program. This
301-
would be ~/.lldbinit-lldb for the command line :program:`lldb` and
302-
~/.lldbinit-Xcode for Xcode. Secondly, the global ~/.lldbinit will be read.
303-
Finally, :program:`lldb` will look for an .lldbinit file in the current working
304-
directory. For security reasons, :program:`lldb` will print a warning and not
305-
source this file by default. This behavior can be changed by changing the
299+
.lldbinit file.
300+
301+
First, it will read the application specific init file whose name is
302+
~/.lldbinit followed by a "-" and the name of the current program. This would
303+
be ~/.lldbinit-lldb for the command line :program:`lldb` and ~/.lldbinit-Xcode
304+
for Xcode. If there is no application specific init file, the global
305+
~/.lldbinit is read.
306+
307+
Secondly, it will look for an .lldbinit file in the current working directory.
308+
For security reasons, :program:`lldb` will print a warning and not source this
309+
file by default. This behavior can be changed by changing the
306310
target.load-cwd-lldbinit setting.
307311

308312
To always load the .lldbinit file in the current working directory, add the

0 commit comments

Comments
 (0)