[clang-repl] Enable debugging of JIT-ed code.
commit1e4891e681c51f3e2a724b4ac4e42380ec4a9be1
authorVassil Vassilev <v.g.vassilev@gmail.com>
Sun, 16 Apr 2023 20:43:29 +0000 (16 20:43 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Tue, 18 Apr 2023 13:19:42 +0000 (18 13:19 +0000)
treeff380abcb2f3ad078db79dfce095f753845f3c5b
parent3e508967fd1b1d77434bff3df7a7d7d98bf8e1e8
[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
clang/lib/Interpreter/IncrementalExecutor.cpp