[lldb/interpreter] Improve REPL init file compatibility
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Tue, 1 Sep 2020 22:47:16 +0000 (00:47 +0200)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Tue, 1 Sep 2020 23:21:22 +0000 (01:21 +0200)
commit0224738c1abdee59923a539204f12c4c99621506
treea9a9cfd25182889a3c3cbdcf9d71717dbc045445
parentca842c825a1caf10aacb1dc63664d565b1f2f4eb
[lldb/interpreter] Improve REPL init file compatibility

This patch changes the command interpreter sourcing logic for the REPL
init file. Instead of looking for a arbitrary file name, it standardizes
the REPL init file name to match to following scheme:

                          `.lldbinit-<language>-repl`

This will make the naming more homogenous and the sourcing logic future-proof.

rdar://65836048

Differential Revision: https://reviews.llvm.org/D86987

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/docs/man/lldb.rst
lldb/source/Interpreter/CommandInterpreter.cpp
lldb/tools/driver/Driver.cpp