introspecting debug info from the JIT

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.

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

Reid Kleckner wrote:

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.

Ok, that's fair enough. By 'symbol' I'm assuming you mean the function name.
Is there a good way for me to obtain that given an IP address?

Eventually :slight_smile:

Though the original module would probably want to have the debug information for us to stash somewhere.

-eric