[lldb-dev] Debugging JIT-compiled code with LLVM

Reid Kleckner reid.kleckner at gmail.com
Wed Nov 17 09:06:43 PST 2010


On Wed, Nov 17, 2010 at 11:32 AM, Simon Ask Ulsnes <simon at ulsnes.dk> wrote:
> According to the LLVM documentation, gdb 7.0 and later should support
> debugging of JIT'ed code, but this does not appear to be true
> (backtraces from JIT'ed functions are nonsensical, the eh_frame looks
> wrong, and of course breakpoints don't work). What surprises me is
> that LLDB doesn't seem to catch the JIT'ed debug information either.
...
> Platform: Mac OS X 10.6.5, GCC 4.5, gdb 7.1, LLVM 2.8, LLDB from SVN trunk.

Ah, I wouldn't be surprised, I don't think anyone has really succeeded
with gdb off of Linux x86 or x86_64, and I wasn't able to build FSF
gdb on OS X when I was working on this.

Reid



More information about the lldb-dev mailing list