<div dir="ltr"><div><div>Hi,<br><br></div>I am trying to use GDB for debugging my llvm pass. I am following the documentation <a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_WritingAnLLVMPass.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=5-XncfQlc7dFtxPaBLgmnmyWuvZMhrLR_5nxoY-JD20&s=SrFgJEHbETmgWTO9pAyW4ScBlT2tCBFGhzZG-Oi2ArI&e=">http://llvm.org/docs/WritingAnLLVMPass.html</a>. When i am doing this the following error and warning messages I am getting. I tried to remove the warning by apt-get install libc6-dbg:i386 command for updating the libc6 but still getting the same.<br><br><br>Copyright (C) 2014 Free Software Foundation, Inc.<br>License GPLv3+: GNU GPL version 3 or later <<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__gnu.org_licenses_gpl.html&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=5-XncfQlc7dFtxPaBLgmnmyWuvZMhrLR_5nxoY-JD20&s=Ep446hA7wQRsTjv1t574ZJPcMZcSsdW5bjINFITURiY&e=">http://gnu.org/licenses/gpl.html</a>><br>This is free software: you are free to change and redistribute it.<br>There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br>and "show warranty" for details.<br>This GDB was configured as "x86_64-linux-gnu".<br>Type "show configuration" for configuration details.<br>For bug reporting instructions, please see:<br><<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.gnu.org_software_gdb_bugs_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=5-XncfQlc7dFtxPaBLgmnmyWuvZMhrLR_5nxoY-JD20&s=G4kwCxGBA22DZLQoPOUkKgOjNILKTCcJuRzexkKw4AA&e=">http://www.gnu.org/software/gdb/bugs/</a>>.<br>Find the GDB manual and other documentation resources online at:<br><<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.gnu.org_software_gdb_documentation_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=5-XncfQlc7dFtxPaBLgmnmyWuvZMhrLR_5nxoY-JD20&s=ojC9hyXiSd1pdyzEXwPZRf1s0PmBSObc13sgnXTRBDA&e=">http://www.gnu.org/software/gdb/documentation/</a>>.<br>For help, type "help".<br>Type "apropos word" to search for commands related to "word"...<br>Reading symbols from opt...done.<br>(gdb) break llvm::PassManager::run<br>Function "llvm::PassManager::run" not defined.<br>Make breakpoint pending on future shared library load? (y or [n]) y<br>Breakpoint 1 (llvm::PassManager::run) pending.<br>(gdb) run /home/manideepa/Desktop/research/compiler/testing/matmul.bc -load ../lib/loop_graph_analysis.so -loop-graph-analysis<br>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<br>warning: the debug information found in "/lib64/<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__ld-2D2.19.so&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=5-XncfQlc7dFtxPaBLgmnmyWuvZMhrLR_5nxoY-JD20&s=j9h7o6iT8vs2f4Zwg0MvOTTzy9W4RGmgnKTrAVUfYOA&e=">ld-2.19.so</a>" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).<br><br>[Thread debugging using libthread_db enabled]<br>Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".<br>Traceback (most recent call last):<br> File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__so.6.0.19-2Dgdb.py&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=5-XncfQlc7dFtxPaBLgmnmyWuvZMhrLR_5nxoY-JD20&s=4HhOrnW1627N3ncHlbgzg-buq5jS5WbPhtR2pajO4Rg&e=">so.6.0.19-gdb.py</a>", line 63, in <module><br> from libstdcxx.v6.printers import register_libstdcxx_printers<br>ImportError: No module named 'libstdcxx'<br>WARNING: You're attempting to print out a bitcode file.<br>This is inadvisable as it may cause display problems. If<br>you REALLY want to taste LLVM bitcode first-hand, you<br>can force output with the `-f' option.<br><br>opt: loop_graph_new.cpp:245: void <anonymous namespace>::LoopGraphAnalysisPass::AddDataEdges(llvm::Loop *, unsigned int): Assertion `loopGraph != graphs.end()' failed.<br><br>Program received signal SIGABRT, Aborted.<br>0x00007ffff69c7cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56<br>56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.<br><br></div><div>Please help.<br></div><div><br><br clear="all"><div><div><br>-- <br><div class="gmail_signature"><div dir="ltr"><div>Thanks & Regards,<br>Manideepa<br><br></div></div></div>
</div></div></div></div>