Christine Cheng
2011-Aug-18 23:39 UTC
[LLVMdev] tools to debug human readable llvm assembly bc code?
Hi, I am working with a long llvm bc code in human readable form. I am wondering is there a tool like gdb to help me debug that piece of code? Thanks, Christine -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110818/9ae5dec7/attachment.html>
Eric Christopher
2011-Aug-18 23:47 UTC
[LLVMdev] tools to debug human readable llvm assembly bc code?
On Aug 18, 2011, at 4:39 PM, Christine Cheng wrote:> Hi, > > I am working with a long llvm bc code in human readable form. I am wondering is there a tool like gdb to help me debug that piece of code?It's not directly executable so no, not really. You could try debugging lli but that's probably pretty painful and is effectively debugging jitted code. You could try to use bugpoint to reduce a test case out of what you have. -eric
Christine Cheng
2011-Aug-18 23:56 UTC
[LLVMdev] tools to debug human readable llvm assembly bc code?
Hi Eric, Thanks for the reply. I am very new to llvm so could you elaborate more about you meant by 'debugging lli'? Thanks a lot! Christine On Thu, Aug 18, 2011 at 4:47 PM, Eric Christopher <echristo at apple.com>wrote:> > On Aug 18, 2011, at 4:39 PM, Christine Cheng wrote: > > > Hi, > > > > I am working with a long llvm bc code in human readable form. I am > wondering is there a tool like gdb to help me debug that piece of code? > > It's not directly executable so no, not really. You could try debugging lli > but that's probably pretty painful and is effectively debugging jitted code. > > You could try to use bugpoint to reduce a test case out of what you have. > > -eric >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110818/d8ad423f/attachment.html>
Kevin Fan
2011-Aug-19 14:27 UTC
[LLVMdev] tools to debug human readable llvm assembly bc code?
Another possibility is to generate C code from IR using the C backend, then compile and debug that C code with gdb. The generated C statements may be close enough to IR instructions for your purposes. I've successfully used this method in the past, although I don't know what the state of the C backend is these days, since I understand it is not fully supported. Kevin On Thu, Aug 18, 2011 at 7:39 PM, Christine Cheng <clcheng at stanford.edu> wrote:> Hi, > > I am working with a long llvm bc code in human readable form. I am wondering > is there a tool like gdb to help me debug that piece of code? > > Thanks, > > Christine > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >
Reasonably Related Threads
- [LLVMdev] tools to debug human readable llvm assembly bc code?
- [LLVMdev] tools to debug human readable llvm assembly bc code?
- [LLVMdev] problem with sgt's on Sparc machine
- [LLVMdev] clang with multiple input .c and .h files
- [LLVMdev] help with an error message using clang ?