[ORC][LLJIT] Add LLJITBuilder convenience function to enable debugger support.
Clients can now call LLJITBuilder::setEnableDebuggerSupport to enable registration of debug info via the GDB-JIT registration protocol for JIT'd code. Calling LLJITBuilder::setEnableDebuggerSupport(true) will cause LLJITBuilder to add either a DebugObjectManagerPlugin (if the object format on the triple is ELF), or a GDBJITDebugInfoRegistrationPlugin (if the object format on the triple is MachO). At present there is no support for debugging when using COFF. This debugger registration support will only work when JITLink is used as the underlying JIT linker. This patch only addresses registration of JIT'd code by the JIT. To debug JIT'd code you may also need to enable JIT'd code debugging in your debugger. E.g. when debugging MachO JIT'd code under LLDB you will currently need to run (lldb) set set plugin.jit-loader.gdb.enable on to tell LLDB to listen for JIT'd code registration.
Loading
Please sign in to comment