GDB integration problem

Vladimir Prus ghost at cs.msu.su
Sun Mar 11 06:46:09 UTC 2007


On Saturday 10 March 2007 16:54, Shane R wrote:
> I am setting a breakpoint via KDevelop but GDB won't pick it up no matter 
> what I do.
> 
> It gives the following output:
> 
> gdb /home/shane/workspace/neatl/BIN/neatl -fullname -quiet
> (gdb) set edit off
> (gdb) set confirm off
> Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
> (gdb) (gdb)
> (gdb) set print static-members off
> (gdb) tty /dev/pts/0
> (gdb) set width 0
> (gdb) set height 0
> (gdb) set stop-on 1
> (gdb) handle SIG32 pass nostop noprint
> (gdb) handle SIG41 pass nostop noprint
> (gdb) handle SIG42 pass nostop noprint
> (gdb) handle SIG43 pass nostop noprint
> (gdb) set print asm-demangle on
> (gdb) set output-radix 10
> (gdb) cd /home/shane/workspace/neatl/BIN
> (gdb) break /home/shane/workspace/neatl/neatl.cpp:16
> No source file named /home/shane/workspace/neatl/neatl.cpp.
> (gdb) run
> Stopped due to shared library event
> (gdb) break /home/shane/workspace/neatl/neatl.cpp:16
> No source file named /home/shane/workspace/neatl/neatl.cpp.
> (gdb) continue
> Stopped due to shared library event
> (gdb) break /home/shane/workspace/neatl/neatl.cpp:16
> No source file named /home/shane/workspace/neatl/neatl.cpp.
> (gdb) continue
> 
> The important part is that it can't find the source file but the file is 
> definitely there.

Assuming you indeed have a file named:

	/home/shane/workspace/neatl/neatl.cpp

the only explanation I have I gdb bug. Would you try with
gdb 6.6? You also seem to be using older KDevelop
release. For this problem, it does not matter,
but KDevelop 3.4 is generally recommended.

- Volodya





More information about the KDevelop-devel mailing list