[all-commits] [llvm/llvm-project] 59a39c: [LLDB][REPL] Destroy the repl instances correctly

Walter Erquinigo via All-commits all-commits at lists.llvm.org
Tue Apr 25 13:09:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 59a39c2fc91ed5b750083bc51dc43b6510a501b6
      https://github.com/llvm/llvm-project/commit/59a39c2fc91ed5b750083bc51dc43b6510a501b6
  Author: walter erquinigo <walter at modular.com>
  Date:   2023-04-25 (Tue, 25 Apr 2023)

  Changed paths:
    M lldb/source/Target/Target.cpp

  Log Message:
  -----------
  [LLDB][REPL] Destroy the repl instances correctly

This change ensures that the REPL map inside Target is destroyed correctly when `Target::Destroy()` is invoked. Not doing so results in the REPL not finishing its job when the debugger is initialized in REPL mode reading from a file. In my particular case, my REPL doesn't print the stdout of the last expression in the input file unless I include this change.

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




More information about the All-commits mailing list