This is an archive of the discontinued LLVM Phabricator instance.

[clang-repl] Enable debugging of JIT-ed code.
ClosedPublic

Authored by v.g.vassilev on Apr 16 2023, 1:48 PM.

Details

Summary

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.

Diff Detail

Event Timeline

v.g.vassilev created this revision.Apr 16 2023, 1:48 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 16 2023, 1:48 PM
Herald added a subscriber: pengfei. · View Herald Transcript
v.g.vassilev requested review of this revision.Apr 16 2023, 1:48 PM
v.g.vassilev added a reviewer: Hahnfeld.
lhames accepted this revision.Apr 16 2023, 1:49 PM

Looks good to me!

This revision is now accepted and ready to land.Apr 16 2023, 1:49 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2023, 6:20 AM