Manideepa Mukherjee
2015-Jun-26 11:36 UTC
[LLVMdev] LLVM GDB : Function "llvm::PassManager::run" not defined.
Hi, I am following the llvm documentation for debugging my pass from http://llvm.org/docs/WritingAnLLVMPass.html. But when I am trying to break the pass manager and run I am getting the following messages. (gdb) break llvm::PassManager::run Function "llvm::PassManager::run" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (llvm::PassManager::run) pending. (gdb) run /home/manideepa/Desktop/research/compiler/testing/matmul.bc -load ../lib/loop_graph_analysis.so -loop-graph-analysis Starting program: /home/manideepa/Desktop/research/compiler/llvm-3.4/Debug+Asserts/bin/opt /home/manideepa/Desktop/research/compiler/testing/matmul.bc -load ../lib/loop_graph_analysis.so -loop-graph-analysis warning: the debug information found in "/lib64/ld-2.19.so" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch). [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". Traceback (most recent call last): File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++. so.6.0.19-gdb.py", line 63, in <module> from libstdcxx.v6.printers import register_libstdcxx_printers ImportError: No module named 'libstdcxx' WARNING: You're attempting to print out a bitcode file. This is inadvisable as it may cause display problems. If you REALLY want to taste LLVM bitcode first-hand, you can force output with the `-f' option. opt: loop_graph_new.cpp:245: void <anonymous namespace>::LoopGraphAnalysisPass::AddDataEdges(llvm::Loop *, unsigned int): Assertion `loopGraph != graphs.end()' failed. Program received signal SIGABRT, Aborted. 0x00007ffff69c7cc9 in __GI_raise (sig=sig at entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56 56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. Please help me and suggest me how to debug my pass Manideepa Mukherjee PhD Scholar at IIITD Mob: 7428062726 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150626/2835d875/attachment.html>