hi, According to the llvm docs, llvm will generate global variable information such as llvm.dbg.global_variable.type which contains the line number and original name of global variables. But I tried on llvm-1.8 with -g, no such debug intrinsic functions are dumped, I only see some stoppoint, func.start. Are there any secrete options I should pass to llvm-gcc? Thanks. -Jerry -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060912/5cabd5d2/attachment.html>
On Tue, 12 Sep 2006, Wei Jiang wrote:> According to the llvm docs, llvm will generate global variable > information such as > llvm.dbg.global_variable.type which contains the line number and > original name of global variables. But I tried on llvm-1.8 with -g, > no such debug intrinsic functions are dumped, I only see some > stoppoint, func.start. Are there any secrete options I should pass to > llvm-gcc? Thanks.llvm-gcc3 has very primitive support for debug info. Make sure you're using llvm-gcc4. -Chris -- http://nondot.org/sabre/ http://llvm.org/
Reasonably Related Threads
- [LLVMdev] [PROPOSAL] Attach debugging information with LLVM instruction
- [LLVMdev] Debug Information
- [LLVMdev] Some questions on the output formats of AliasSetTracker
- [LLVMdev] line number information
- [LLVMdev] Some questions on the output formats of AliasSetTracker