<div dir="ltr"><div>That is correct – there is no built-in support. You have to provide your own Registrar to the ObjectLinkingLayer to provide this sort of functionality. (For example JuliaLang does that at <a href="https://github.com/JuliaLang/julia/blob/1216e5f60cd2b23e29856b5227399ab0f3abef76/src/jitlayers.cpp#L437">https://github.com/JuliaLang/julia/blob/1216e5f60cd2b23e29856b5227399ab0f3abef76/src/jitlayers.cpp#L437</a>, in addition to registering the function pointer and object file info in several other places).</div><div><br></div><div><br></div><div class="gmail_quote"><div dir="ltr">On Sun, Oct 8, 2017 at 11:48 PM Connor Gray via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>I’m wondering if it’s possible to debug code JIT’ed with the newer ORC JIT. The LLVM documentation has a page at</div><div><br></div><div> <a href="http://llvm.org/docs/DebuggingJITedCode.html" target="_blank">llvm.org/docs/DebuggingJITedCode.html</a></div><div><br></div><div>showing an example of using gdb to debug MCJIT’ed code, but has no mention of ORC JIT.</div><div><br></div><div>From searching around online I’ve gotten the impression that ORC JIT does *not* support providing debugging information to attached debuggers, but no definitive source. Is it the case that ORC JIT in fact does support debugging, and if so, are there examples available; or is my initial impression correct?</div><div><br></div><div>Thanks,</div><div>Connor</div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div>