[LLVMdev] how to debug with interpreter

Rob Nikander rob.nikander at gmail.com
Fri Mar 18 19:26:31 PDT 2011


Hi,

I'm using the JIT execution engine for my language, and I'm finding it
extremely painful to find bugs in generated code.  I get a "seg fault"
and I can't see where it happened.  Writing a debugger or generating
info for GDB seems like too much work at this point.   Is there a way
to use the Interpreter to run this code, stepping through and printing
the LLVM instructions, to find the one that triggers the seg fault?  I
have not been writing any files to disk and have not yet used much in
LLVM except the C++ API.

thanks,
Rob



More information about the llvm-dev mailing list