<div dir="ltr"><div><div><div><div>Hi Tim,<br><br>At the moment the debugger work is integrated with our closed KL compiler (<a href="http://fabricengine.com/">http://fabricengine.com/</a>) so I can't point you to a public repository right now, though we'd like to move this functionality to LLDB.<br>

<br></div>As a bit of an overview we currently have a simple debugger written using ptrace on Linux and the Debug API on Windows. The debugger receives info from MCJIT's GDBRegistrar in the same way as GDB when code has been JIT-ed and we then parse the Dwarf info from that object (using the elftoolchain). We support breakpoints and examining variables on both OSes but it's become clear that as we push on we're duplicating effort with the LLDB project so it would be nice to bring them together.<br>

<br></div>There are a few issues on Windows, such as the fact that we're currently mixing VS-compiled code in our core engine with the MCJIT-ed ELF+Dwarf but at least initially we are only aiming for debuggability of the MCJIT-generated code there. There are probably other issues that we'll discover as well, hence the desire to open it up to other interested parties. :)<br>

<br></div>If you guys have made any progress it'd be great to coordinate, I imagine things will be quiet over the next week or so but we should be picking up on this in early January.<br><br></div>Cheers,<br>Andrew<br>

<div><div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 23, 2013 at 1:17 AM, Tim Holy <span dir="ltr"><<a href="mailto:tim.holy@gmail.com" target="_blank">tim.holy@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andrew,<br>
<br>
I've been lurking on this list for months, hoping to see a message like this<br>
one. It really is Christmas :)<br>
<br>
Over at the Julia project (<a href="http://julialang.org/" target="_blank">http://julialang.org/</a>), we're in need of a good<br>
debugger. Is your project in a public repository? If so, would you be willing<br>
to point to a branch or series of commits that shows how far along you are?<br>
<br>
I agree it would be great to see LLDB support this use case.<br>
<br>
Best,<br>
--Tim<br>
<div><div class="h5"><br>
On Friday, December 20, 2013 05:20:32 PM Andrew MacPherson wrote:<br>
> Hello,<br>
><br>
> We have a project which uses MCJIT to compile code from our KL language<br>
> with Dwarf debugging info and we're now working on debugger support under<br>
> Linux and Windows. We have a basic prototype working under both and at this<br>
> point we're thinking it may make sense to integrate what we have into LLDB<br>
> since there are still areas that we need to address that are already<br>
> addressed in the existing LLDB implementation.<br>
><br>
> My question is around two items, namely JIT support and Windows support in<br>
> LLDB. We would first be looking to target LLDB debugging of MCJIT-ted code<br>
> under Linux and then adding support for Windows. The LLDB site seems to<br>
> indicate that JIT support is underway and I would be happy to contribute to<br>
> this effort. If it's stalled we could take it up ourselves, I notice a post<br>
> on the list from a couple of years back which could possibly be used as a<br>
> starting point?<br>
><br>
> The LLDB site also indicates that Windows support is underway, we'd also be<br>
> interested in contributing to this and knowing anything about its current<br>
> status. It's unclear whether the current plans include implementing support<br>
> for the Windows debugging API as we would require. We could push on this<br>
> area as well once we have a Linux JIT debugger up and running.<br>
><br>
> Thanks,<br>
> Andrew<br>
</div></div>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
</blockquote></div><br></div>