<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I wonder if it is not linked to the work on the new PassManager.<div class=""><br class=""></div><div class="">Can you try: break llvm::legacy::PassManager::run</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">— </div><div class="">Mehdi</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 26, 2015, at 3:54 AM, Manideepa Mukherjee <<a href="mailto:manideepa.mukherjee@gmail.com" class="">manideepa.mukherjee@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class="">Hi,<br class=""><br class=""></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=" class="">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 class=""><br class=""><br class="">Copyright (C) 2014 Free Software Foundation, Inc.<br class="">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=" class="">http://gnu.org/licenses/gpl.html</a>><br class="">This is free software: you are free to change and redistribute it.<br class="">There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br class="">and "show warranty" for details.<br class="">This GDB was configured as "x86_64-linux-gnu".<br class="">Type "show configuration" for configuration details.<br class="">For bug reporting instructions, please see:<br class=""><<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=" class="">http://www.gnu.org/software/gdb/bugs/</a>>.<br class="">Find the GDB manual and other documentation resources online at:<br class=""><<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=" class="">http://www.gnu.org/software/gdb/documentation/</a>>.<br class="">For help, type "help".<br class="">Type "apropos word" to search for commands related to "word"...<br class="">Reading symbols from opt...done.<br class="">(gdb) break llvm::PassManager::run<br class="">Function "llvm::PassManager::run" not defined.<br class="">Make breakpoint pending on future shared library load? (y or [n]) y<br class="">Breakpoint 1 (llvm::PassManager::run) pending.<br class="">(gdb) run /home/manideepa/Desktop/research/compiler/testing/matmul.bc -load ../lib/loop_graph_analysis.so -loop-graph-analysis<br class="">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 class="">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=" class="">ld-2.19.so</a>" does not match "/lib64/ld-linux-x86-64.so.2" (CRC mismatch).<br class=""><br class="">[Thread debugging using libthread_db enabled]<br class="">Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".<br class="">Traceback (most recent call last):<br class=""> 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=" class="">so.6.0.19-gdb.py</a>", line 63, in <module><br class=""> from libstdcxx.v6.printers import register_libstdcxx_printers<br class="">ImportError: No module named 'libstdcxx'<br class="">WARNING: You're attempting to print out a bitcode file.<br class="">This is inadvisable as it may cause display problems. If<br class="">you REALLY want to taste LLVM bitcode first-hand, you<br class="">can force output with the `-f' option.<br class=""><br class="">opt: loop_graph_new.cpp:245: void <anonymous namespace>::LoopGraphAnalysisPass::AddDataEdges(llvm::Loop *, unsigned int): Assertion `loopGraph != graphs.end()' failed.<br class=""><br class="">Program received signal SIGABRT, Aborted.<br class="">0x00007ffff69c7cc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56<br class="">56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.<br class=""><br class=""></div><div class="">Please help.<br class=""></div><div class=""><br class=""><br clear="all" class=""><div class=""><div class=""><br class="">-- <br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class="">Thanks & Regards,<br class="">Manideepa<br class=""><br class=""></div></div></div>
</div></div></div></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:LLVMdev@cs.uiuc.edu" class="">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" class="">http://llvm.cs.uiuc.edu</a><br class=""><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br class=""></div></blockquote></div><br class=""></div></div></body></html>