[Lldb-commits] [PATCH] D86242: [lldb/interpreter] Add REPL-specific init file

Med Ismail Bennani via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 19 14:51:07 PDT 2020

mib added inline comments.

Comment at: lldb/source/Interpreter/CommandInterpreter.cpp:2183
 /// whose name is "~/.lldbinit" followed by a "-" and the name of the program.
-/// If this file doesn't exist, we fall back to just the "~/.lldbinit" file.
-void CommandInterpreter::SourceInitFileHome(CommandReturnObject &result) {
+/// If this file doesn't exist, we fall back to the REPL init file or the
+/// default home init file in "~/.lldbinit".
JDevlieghere wrote:
> This is wrong, you check the REPL file first, fi that works you use that, otherwise you fall back to the app specific one, and finally to the global one. 
Yes, but the application init file overrides the REPL init file that also override the global one, that's why I put it this way in the comment.

  rG LLVM Github Monorepo



More information about the lldb-commits mailing list