<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="">Hi,<div class=""><br class=""></div><div class="">At this point your debugger is running and you were able to break into LLVM at the place you wanted. I’m not sure what you are trying to accomplish now, can you clarify?</div><div class="">if you need help with gdb itself I think you are not on the right mailing list.</div><div class=""><br class=""></div><div class="">— </div><div class="">Mehdi</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On Jun 28, 2015, at 10:28 PM, 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" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class=""><div class="">Hi,<br class=""><br class=""></div>Sorry to bug you. It was my mistake.<br class=""><br class=""></div>So now it is giving the following output. Why this warning is coming. I tried to upgrade<span class="Apple-converted-space"> </span><span class="">libc6-dbg but it showed libc6-dbg is already the newest version.<span class="Apple-converted-space"> </span></span><br class=""><br class=""><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=Hx431zsIEK5oB4wiM8Kv85fcXw5XAqBkmGV_oSQ_Kis&s=ojeTcrQtVPhLvoKEFVPMnfPXwn2oXwH5uDJ61ECECrY&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=Hx431zsIEK5oB4wiM8Kv85fcXw5XAqBkmGV_oSQ_Kis&s=NEi-tpMqRF-5nB8vAxOI2KQSZ3W4Nt4k8ksvN6BDtEQ&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=""><br class="">Breakpoint 1, llvm::legacy::PassManager::run (this=0x7fffffffd9a0, M=...) at LegacyPassManager.cpp:1746<br class="">1746      return PM->run(M);<br class="">(gdb)<span class="Apple-converted-space"> </span><br class=""><br class=""></div><div class="gmail_extra" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class="gmail_quote">On Mon, Jun 29, 2015 at 10:28 AM, Mehdi Amini<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:mehdi.amini@apple.com" target="_blank" class="">mehdi.amini@apple.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div style="word-wrap: break-word;" class="">Hi,<div class=""><br class=""></div><div class="">The break command I gave you solve your problem. But now you are not running the right “run” command, it seems to me that you missed the -load option.</div><div class=""><br class=""></div><div class="">— </div><span class="HOEnZb"><font color="#888888" class=""><div class="">Mehdi</div></font></span><div class=""><div class="h5"><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jun 28, 2015, at 9:55 PM, Manideepa Mukherjee <<a href="mailto:manideepa.mukherjee@gmail.com" target="_blank" class="">manideepa.mukherjee@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class=""><div class=""><div class="">Hi,<br class=""><br class=""></div>I tried with this command you suggested and I am getting the following output.<span class="Apple-converted-space"> </span><br class=""></div>I have followed the command given on the tutorial exactly.<span class="Apple-converted-space"> </span><br class=""><div class=""><div class=""><br class="">Reading symbols from opt...done.<br class="">(gdb) break llvm::legacy::PassManager::run<br class="">Breakpoint 1 at 0x1899ac4: file LegacyPassManager.cpp, line 1746.<br class="">(gdb) run /home/manideepa/Desktop/research/compiler/testing/matmul.bc ../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 ../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=Hx431zsIEK5oB4wiM8Kv85fcXw5XAqBkmGV_oSQ_Kis&s=ojeTcrQtVPhLvoKEFVPMnfPXwn2oXwH5uDJ61ECECrY&e=" target="_blank" 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=""> <span class="Apple-converted-space"> </span>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=Hx431zsIEK5oB4wiM8Kv85fcXw5XAqBkmGV_oSQ_Kis&s=NEi-tpMqRF-5nB8vAxOI2KQSZ3W4Nt4k8ksvN6BDtEQ&e=" target="_blank" class="">so.6.0.19-gdb.py</a>", line 63, in <module><br class="">   <span class="Apple-converted-space"> </span>from libstdcxx.v6.printers import register_libstdcxx_printers<br class="">ImportError: No module named 'libstdcxx'<br class="">opt: Unknown command line argument '-loop-graph-analysis'.  Try: '/home/manideepa/Desktop/research/compiler/llvm-3.4/Debug+Asserts/bin/opt -help'<br class="">opt: Did you mean '-combiner-alias-analysis'?<br class="">opt: Too many positional arguments specified!<br class="">Can specify at most 1 positional arguments: See: /home/manideepa/Desktop/research/compiler/llvm-3.4/Debug+Asserts/bin/opt -help<br class="">[Inferior 1 (process 4282) exited with code 01]<br class=""><br class=""><br class=""></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sat, Jun 27, 2015 at 2:23 AM, Mehdi Amini<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:mehdi.amini@apple.com" target="_blank" class="">mehdi.amini@apple.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div style="word-wrap: break-word;" 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><span class=""><font color="#888888" class=""><div class="">Mehdi</div><div class=""><br class=""></div></font></span><div class=""><br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class=""><div class=""><div class="">On Jun 26, 2015, at 3:54 AM, Manideepa Mukherjee <<a href="mailto:manideepa.mukherjee@gmail.com" target="_blank" class="">manideepa.mukherjee@gmail.com</a>> wrote:</div><br class=""></div></div><div class=""><div class=""><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<span class="Apple-converted-space"> </span><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=" target="_blank" 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=" target="_blank" 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=" target="_blank" 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=" target="_blank" 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=" target="_blank" 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=""> <span class="Apple-converted-space"> </span>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=" target="_blank" class="">so.6.0.19-gdb.py</a>", line 63, in <module><br class="">   <span class="Apple-converted-space"> </span>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="">--<span class="Apple-converted-space"> </span><br class=""><div class=""><div dir="ltr" class=""><div class="">Thanks & Regards,<br class="">Manideepa<br class=""><br class=""></div></div></div></div></div></div></div></div></div><span class="">_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank" class="">LLVMdev@cs.uiuc.edu</a><span class="Apple-converted-space"> </span>        <a href="http://llvm.cs.uiuc.edu/" target="_blank" class="">http://llvm.cs.uiuc.edu</a><br class=""><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br class=""></span></div></blockquote></div><br class=""></div></div></div></blockquote></div><br class=""><br clear="all" class=""><br class="">--<span class="Apple-converted-space"> </span><br class=""><div class=""><div dir="ltr" class=""><div class="">Thanks & Regards,<br class="">Manideepa Mukherjee<br class="">Contact No:-<span class="Apple-converted-space"> </span><a href="tel:%2B91-7428062726" value="+917428062726" target="_blank" class="">+91-7428062726</a></div></div></div></div></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""><br clear="all" class=""><br class="">--<span class="Apple-converted-space"> </span><br class=""><div class="gmail_signature"><div dir="ltr" class=""><div class="">Thanks & Regards,<br class="">Manideepa Mukherjee<br class="">Contact No:- +91-7428062726</div></div></div></div></div></blockquote></div><br class=""></div></body></html>