[LLVMdev] Debugging my pass with llvm
ambika
ambika at cse.iitb.ac.in
Fri Mar 19 06:47:09 PDT 2010
Hi,
I have a pass named MyAna in directory /llvm-obj/lib/myana
When i do make it compiles succesfully but when I try to load it I get a
segmentation fault, ie when I run
opt -load ../llvm-obj/Release/lib/MyAna.so -my-ana t.bc
I get segmentation fault.
I used bugpoint as :
bugpoint opt -load ../llvm-obj/Release/lib/MyAna.so -my-ana t.bc
I found out that some condition is failing in a file. But I am not able
to determine the flow. ie I want to backtrace from this point.
How can I do it?
I tried using gdb but I am not able to compile my program with -g option.
It will be great if someone can help.
regards,
Ambika
More information about the llvm-dev
mailing list