On Feb 12, 2012, at 11:05 AM, Amittai Aviram wrote: > On Feb 12, 2012, at 10:59 AM, xunxun wrote: > >> 于 2012/2/12 23:48, Amittai Aviram 写道: >>> GDB says "No source file named omp-low.c." I also tried entering the whole absolute path instead of just the file name and got the same result. :-( All this was both before and after rebuilding with >> >> Try to add the file path : >> break /usr/gcc/libgomp/omp-low.c:2624 > > That is what I did--as I said, "I also tried entering the whole absolute path instead of just the file name." BTW, note that omp-low.c is not in libgomp, it's in [GCC_ROOT]/gcc , where [GCC_ROOT] is the root directory of the gcc source tree. BTW, I encounter the same problem with other source files, such as gimplify.c, but not with gcc.c: (gdb) b /home/afa9/Projects/GCC/gcc-4.6.2/gcc/gcc.c:main Breakpoint 7 at 0x40e08a: file ../../gcc-4.6.2/gcc/gcc.c, line 6096. (gdb) b /home/afa9/Projects/GCC/gcc-4.6.2/gcc/gcc.c:6096 Note: breakpoint 7 also set at pc 0x40e08a. Breakpoint 8 at 0x40e08a: file ../../gcc-4.6.2/gcc/gcc.c, line 6096. (gdb) b /home/afa9/Projects/GCC/gcc-4.6.2/gcc/gimplify.c:gimple_pop_condition No source file named /home/afa9/Projects/GCC/gcc-4.6.2/gcc/gimplify.c. Make breakpoint pending on future shared library load? (y or [n]) n (gdb) b /home/afa9/Projects/GCC/gcc-4.6.2/gcc/gimplify.c:288 No source file named /home/afa9/Projects/GCC/gcc-4.6.2/gcc/gimplify.c. Make breakpoint pending on future shared library load? (y or [n]) n Amittai Amittai Aviram PhD Student in Computer Science Yale University 646 483 2639 amittai.aviram@xxxxxxxx http://www.amittai.com