<div dir="ltr">(Sorry, I hadn't seen the recent post by Frank Tetzel asking essentially the same question...)<br><br><div class="gmail_quote"><div dir="ltr">On Mon, 16 Jul 2018 at 11:56, Geoff Levner <<a href="mailto:glevner@gmail.com">glevner@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>That works (on Linux)! Thanks very much for the pointer, Stefan.</div><div><br></div><div>Might you be able to point me to any information about getting profiling to work as well?</div><div><br></div><div>Thanks again,</div><div>Geoff<br></div><div><br><div class="gmail_quote"><div dir="ltr">On Sat, 14 Jul 2018 at 23:06, Stefan Gränitz <<a href="mailto:stefan.graenitz@gmail.com" target="_blank">stefan.graenitz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Geoff, hi Alex<br>
<br>
If you implement the GDB JIT Interface in your Orc JIT, this is in<br>
general possible (at least from the JIT's point of view) with both<br>
debuggers, GDB and LLDB. Please have a look at the example here:<br>
<a href="https://github.com/weliveindetail/JitFromScratch/tree/jit-debug/gdb-interface" rel="noreferrer" target="_blank">https://github.com/weliveindetail/JitFromScratch/tree/jit-debug/gdb-interface</a><br>
<br>
You will probably need to adjust the code depending on the LLVM version<br>
you are using. As described in the readme, however, getting it to work<br>
in practice depends on a few more details. To Keep it short:<br>
* Linux: works out of the box<br>
* macOS: possible, but cumbersome (the example is not up-to-date here)<br>
* Windows: I lost hope (haven't looked at it for a long time though)<br>
<br>
Best<br>
Stefan<br>
<br>
Am 13.07.18 um 21:00 schrieb Alex Denisov:<br>
> cc'ing Stefan Gränitz, he had some progress on this topic.<br>
><br>
>> On 13. Jul 2018, at 18:39, Geoff Levner via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br>
>><br>
>> Greetings, LLVM wizards.<br>
>><br>
>> I was just wondering if any progress has been made on this issue in the last few months (using gdb to debug a module compiled by Orc). I had to move to the Orc API in order to be able to call modules' constructors and destructors as needed, but I would quite like to be able to debug and profile the resulting code as well...<br>
>><br>
>> Thanks,<br>
>> Geoff<br>
</blockquote></div></div></div>
</blockquote></div></div>