[LLVMdev] DEBUG INFO at the bytecode level

John Criswell criswell at illinois.edu
Tue May 18 07:21:22 PDT 2010


Zheng Wang wrote:
> Hello,
>
> Could I get some debug info at the byte code level? I am writing a
> passer and if will be nice if I can know which line in the source an
> instruction (or value) corresponds to.
>   

SAFECode has an example of using debug info for LLVM 2.6 in 
lib/DebugInstrumentation/DebugInstrumentation.cpp.  Mainline SAFECode 
also works with LLVM 2.7, but the debug info usage may not be working 
quite right yet.

-- John T.

> I found a document online:
> http://llvm.org/docs/SourceLevelDebugging.html, but I can't find an
> example of doing it at the byte code level.
>
> Cheers,
> Zheng
> _______________________________________________
> 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