[all-commits] [llvm/llvm-project] 868b45: [lldb/interpreter] Add REPL-specific init file

Med Ismail Bennani via All-commits all-commits at lists.llvm.org
Wed Aug 19 15:37:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 868b45b5b31d1203cab09ae0306f4c47e6070f68
      https://github.com/llvm/llvm-project/commit/868b45b5b31d1203cab09ae0306f4c47e6070f68
  Author: Med Ismail Bennani <medismail.bennani at gmail.com>
  Date:   2020-08-20 (Thu, 20 Aug 2020)

  Changed paths:
    M lldb/docs/man/lldb.rst
    M lldb/include/lldb/API/SBCommandInterpreter.h
    M lldb/include/lldb/Interpreter/CommandInterpreter.h
    M lldb/source/API/SBCommandInterpreter.cpp
    M lldb/source/API/SBDebugger.cpp
    M lldb/source/Interpreter/CommandInterpreter.cpp
    M lldb/tools/driver/Driver.cpp

  Log Message:
  -----------
  [lldb/interpreter] Add REPL-specific init file

This patch adds the infrastructure to have language specific REPL init
files. It's the foundation work to a following patch that will introduce
Swift REPL init file.

When lldb is launched with the `--repl` option, it will look for a REPL
init file in the home directory and source it. This overrides the
default `~/.lldbinit`, which content might make the REPL behave
unexpectedly. If the REPL init file doesn't exists, lldb will fall back
to the default init file.

rdar://65836048

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

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>




More information about the All-commits mailing list