On 08/23/13 22:03, Jan Danielsson wrote: > I have had some trouble debugging shared libraries for a while. I > used to be able to step into shared objects during debug, but for some > reason I am no longer able to do so. When running the attached program > in gdb, I get this behavior: > > --------------------------------------------- > gauss$ gdb ./testprog > GNU gdb (GDB) 7.3.1 > [---] > This GDB was configured as "x86_64--netbsd". > [---] > Reading symbols from /home/jan/tmp/dbgtest/testprog...done. > (gdb) break 9 > Breakpoint 1 at 0x400a40: file testprog.c, line 9. > (gdb) run > Starting program: /home/jan/tmp/dbgtest/testprog > > Breakpoint 1, main (argc=1, argv=0x7f7fffffdb68) at testprog.c:9 > 9 bar = foo(42, 72); > (gdb) step > 11 printf("bar=%d\n", bar); > (gdb) > --------------------------------------------- [---]
Random thought: Is there any chance that this is due to that I build my system using clang? I know it shouldn't matter, but I mention it for completeness. -- Kind regards, Jan Danielsson