Hi,<br><br>I am trying to debug my llvm pass called -aa-eval-garg11 using gdb. However I am not able to establish a breakpoint in any function of my pass. I have compiled my<br>pass with a debug build and I have also compiled the input file (using llvm-gcc) with the -g flag. Given below is the exact output.<br>
<br><br>(gdb) break llvm::PassManager::run<br>Breakpoint 1 at 0x86be87c: file /home/engr/cs426/llvm/llvm-2.6/lib/VMCore/PassManager.cpp, line 1558.<br>(gdb) run pointer.bc -load ../Debug/lib/libMP1.so -basicaa -aa-eval-garg11<br>
Starting program: /home/engr/cs426/llvm/llvm-2.6-x86/Debug/bin/opt pointer.bc -load ../Debug/lib/libMP1.so -basicaa -aa-eval-garg11<br>[Thread debugging using libthread_db enabled]<br><br>Breakpoint 1, llvm::PassManager::run (this=0xbfffe6f0, M=...) at /home/engr/cs426/llvm/llvm-2.6/lib/VMCore/PassManager.cpp:1558<br>
1558 return PM->run(M);<br>(gdb) break llvm::AAEvalTemp::PointsToFunc<br>Can't find member of namespace, class, struct, or union named "llvm::AAEvalTemp::PointsToFunc"<br>Hint: try 'llvm::AAEvalTemp::PointsToFunc<TAB> or 'llvm::AAEvalTemp::PointsToFunc<ESC-?><br>
(Note leading single quote.)<br>Make breakpoint pending on future shared library load? (y or [n]) n<br><br><br>Is there some clear mistake in my way of using the gdb ?<br><br>Thanks.<br>Pranav<br>