Joe Groff
2011-Dec-29 03:51 UTC
[LLVMdev] DIBuilder not filling in references to compilation unit?
Hi everybody. I'm trying to use DIBuilder to emit debug information, but in the generated metadata, it appears that references to the compilation unit are being left null. The llvm.dbg.sp node also fails to get generated. Other than these missing pieces, the metadata looks otherwise correct. I am calling DIBuilder::finalize. When I try to inspect variables in GDB, it replies: (gdb) print x Unable to access variable "x" $1 = <variable optimized away by compiler> This ring any bells with anyone? Let me know if you need more information. Thanks. -Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111228/8d96360d/attachment.html>
Joe Groff
2011-Dec-29 04:12 UTC
[LLVMdev] DIBuilder not filling in references to compilation unit?
(Sorry, mail client totally destroyed that last message. Trying again.) Hi everybody. I'm trying to use DIBuilder to emit debug information, but in the generated metadata, it appears that references to the compilation unit are being left null. The llvm.dbg.sp node also fails to get generated. Other than these missing pieces, the metadata looks otherwise correct. I am calling DIBuilder::finalize. When I try to inspect variables in GDB, it replies: (gdb) print x Unable to access variable "x" $1 = <variable optimized away by compiler> This ring any bells with anyone? Let me know if you need more information. Thanks. -Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111228/1522d940/attachment.html>
Devang Patel
2012-Jan-03 17:29 UTC
[LLVMdev] DIBuilder not filling in references to compilation unit?
Hi Joe, On Dec 28, 2011, at 7:51 PM, Joe Groff wrote:> Hi everybody. I'm trying to use DIBuilder to emit debug information, but in the generated metadata, it appears that references to the compilation unit are being left null.Are you using DIBuilder.finalize() in the end ? - Devang> The llvm.dbg.sp node also fails to get generated. Other than these missing pieces, the metadata looks otherwise correct. I am calling DIBuilder::finalize. When I try to inspect variables in GDB, it replies: > > (gdb) print x > Unable to access variable "x" > $1 = <variable optimized away by compiler> > > This ring any bells with anyone? Let me know if you need more information. Thanks. > > -Joe > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120103/04227f99/attachment.html>
Seemingly Similar Threads
- [LLVMdev] DIBuilder - what's with the null compile units?
- [LLVMdev] DIBuilder - what's with the null compile units?
- [LLVMdev] DIBuilder - what's with the null compile units?
- [LLVMdev] DIBuilder - what's with the null compile units?
- [LLVMdev] DIBuilder - what's with the null compile units?