gdb - No source file named...
-
Mein executable file liegt in ./bin und die source files in ./src nun will ich mein Programm mit dem gdb debuggen:
UniX:~/projects/game/bin$ gdb ./a.out GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". [b](gdb)[/b] break player.hpp:5 No source file named player.hpp. Make breakpoint pending on future shared library load? (y or [n]) n [b](gdb)[/b] break ../src/player.hpp:5 No source file named ../src/player.hpp. Make breakpoint pending on future shared library load? (y or [n]) n [b](gdb)[/b] break /home/raptor/projects/game/src/player.hpp:5 No source file named /home/cobra/projects/chess/src/player.hpp. Make breakpoint pending on future shared library load? (y or [n]) n [b](gdb)[/b]
Warum funktioniert denn das breakpoint setzen nicht?
Ich habe doch nun fast alle Path Formulierungen versucht. Wie setze ich einen breakpoint in line 5 von player.hpp?
-
Probier mal "directory ../src"
-
[b](gdb)[/b] directory ../src Source directories searched: /home/raptor/projects/game/bin/../src:/home/raptor/projects/game/bin/../src+:$cdir:$cwd [b](gdb)[/b] break player.hpp:4 No source file named player.hpp. Make breakpoint pending on future shared library load? (y or [n]) n [b](gdb)[/b]