[LLVMdev] introspecting debug info from the JIT

Reid Kleckner reid.kleckner at gmail.com
Wed Mar 30 08:09:25 PDT 2011


Unfortunately, LLVM doesn't really know how to generate debug info for
JITed code yet.  All it can tell you or a debugger is the symbol and
the unwind information for unwinding exceptions through JITed code.

Hopefully the MC JIT will make that problem go away.

Reid

On Wed, Mar 30, 2011 at 10:05 AM, Michael Muller <mmuller at enduden.com> wrote:
>
> Hi all,
>
> Can someone point me to a good way to get debug info from jitted code at
> runtime?  Ideally I'm looking for something that given the current IP address,
> provides function name, filename and line number.
>
> The context of this request is that I'm trying to inject a stack-trace into an
> exception object.
>
> =============================================================================
> michaelMuller = mmuller at enduden.com | http://www.mindhog.net/~mmuller
> -----------------------------------------------------------------------------
> If you are not willing to control your own mind, there are plenty of other
> people who are willing to do it for you.
> =============================================================================
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list