简体   繁体   English

如何使用lldb调试LLVM代码?

[英]How to debug LLVM code using lldb?

I have a piece of hand-written llvm assembly that I want to debug with lldb. 我有一个要用lldb调试的手写llvm程序集。

How do I make llc emit debugging information so that lldb could display the original llvm assembly instead of the native at&t-style assembly it's displaying at the moment? 如何使llc发出调试信息,以便lldb可以显示原始的llvm程序集,而不是当前显示的at&t样式的本机程序集?

There used to be a pass called DebugIR that would add debug info to LLVM IR, however it was removed in r222945. 曾经有一个称为DebugIR的传递将调试信息添加到LLVM IR,但是在r222945中已将其删除。 My guess is that it wasn't maintained properly and was bit-rotting. 我的猜测是,它的维护不当,并且腐烂了。 You could try revive it though! 您可以尝试重振它!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM