[all-commits] [llvm/llvm-project] bf8f6e: [lldb/Interpreter] Fix language detection for the ...

Med Ismail Bennani via All-commits all-commits at lists.llvm.org
Thu Sep 3 02:00:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bf8f6e89c8d6fbac3e91ab37de7431d8e7c8aab4
      https://github.com/llvm/llvm-project/commit/bf8f6e89c8d6fbac3e91ab37de7431d8e7c8aab4
  Author: Med Ismail Bennani <medismail.bennani at gmail.com>
  Date:   2020-09-03 (Thu, 03 Sep 2020)

  Changed paths:
    M lldb/source/Interpreter/CommandInterpreter.cpp

  Log Message:
  -----------
  [lldb/Interpreter] Fix language detection for the REPL InitFile

Previously, before loading the REPL language-specific init file, lldb
checked the selected target language in which case it returned an unknown
language type with the REPL target.

Instead, the patch calls `Language::GetLanguagesSupportingREPLs` and
look for the first element of that set. In case lldb was not configured
with a REPL language, then, it will just stop sourcing the REPL init
file and fallback to the original logic (continuing with the default
init file).

rdar://65836048

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

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




More information about the All-commits mailing list