Reland "[clang-repl] Enable debugging of JIT-ed code."
commit310ee08d5d45d9388333842a79bf4cef761afddf
authorVassil Vassilev <v.g.vassilev@gmail.com>
Tue, 18 Apr 2023 16:22:04 +0000 (18 16:22 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Tue, 18 Apr 2023 18:33:52 +0000 (18 18:33 +0000)
tree7f7f4574f966f59858dc2e2a8cd3176095b4ec76
parent98f5a340975bc00197c57e39eb4ca26e2da0e8a2
Reland "[clang-repl] Enable debugging of JIT-ed code."

Original commit message: "
[clang-repl] Enable debugging of JIT-ed code.

    This change follows llvm/llvm-project@21b5ebd and makes use of the jitlink
    infrastructure. In order to use this feature inside lldb one needs to run the
    lldb command: settings set plugin.jit-loader.gdb.enable on

    This works currently only on Darwin since jitlink is not a default ELF/x86-64
    backend yet.

    Differential revision: https://reviews.llvm.org/D148481
"

This patch reverts commit e64fbf2cca8c4763a058ba59a48ab8e4b8193028 and adds
the missing library dependencies which caused the initial failure.
clang/lib/Interpreter/CMakeLists.txt
clang/lib/Interpreter/IncrementalExecutor.cpp