[CMake] issue with debugging on codeblocks (cmake generated project)

nader.akhres at laposte.net nader.akhres at laposte.net
Tue Mar 23 07:00:53 EDT 2010


Hello,

I can't debug on my cmake generated project for codeblocks, despite having activated debug symbol and explicitely added src path.
I always get the message:

No source file named /home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp

Don't know if it's cmake issue or codeblocks. Does anyone meet the same issue?
Here are my traces, if it could help:

debugger output:


Building to ensure sources are up-to-date
Build succeeded
Selecting target:
brothers_on_death
Adding source dir: /home/toto/Bureau/tdr/tdr_engine/src
Adding source dir: /home/toto/Bureau/tdr/tdr_engine_impl/src
Adding source dir: /home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src
Adding source dir: /home/toto/Bureau/tdr/tdr_games/brothers_on_death/src
Adding source dir: /home/toto/Bureau/tdr/
Adding source dir: /home/toto/Bureau/tdr/
Changing directory to: /home/toto/Bureau/tdr/build/CodeBlocksUnix/tdr_games/brothers_on_death
Adding file: /home/toto/Bureau/tdr/build/CodeBlocksUnix/tdr_games/brothers_on_death/brothers_on_death
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.0-ubuntu
No source file named /home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp.
Breakpoint 1 ("/home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp:145) pending.
No source file named /home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp.
Breakpoint 2 ("/home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp:158) pending.
No source file named /home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp.
Breakpoint 3 ("/home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp:156) pending.
No source file named /home/toto/Bureau/tdr/tdr_engine_impl/src/tdr_engine.cpp.
Breakpoint 4 ("/home/toto/Bureau/tdr/tdr_engine_impl/src/tdr_engine.cpp:301) pending.
No source file named /home/toto/Bureau/tdr/tdr_engine_impl/src/tdr_engine.cpp.
Breakpoint 5 ("/home/toto/Bureau/tdr/tdr_engine_impl/src/tdr_engine.cpp:295) pending.
No source file named /home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src/tdr_grafbox_sdl.cpp.
Breakpoint 6 ("/home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src/tdr_grafbox_sdl.cpp:39) pending.
No source file named /home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src/tdr_grafbox_sdl.cpp.
Breakpoint 7 ("/home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src/tdr_grafbox_sdl.cpp:31) pending.
Child process PID: 9453
Program exited with code 0377.
Debugger finished with status 0


debugger logs:


LD_LIBRARY_PATH=.:
Command-line: /usr/bin/gdb -nx -fullname  -quiet -args /home/toto/Bureau/tdr/build/CodeBlocksUnix/tdr_games/brothers_on_death/brothers_on_death
Working dir : /home/toto/Bureau/tdr/
Reading symbols from /home/toto/Bureau/tdr/build/CodeBlocksUnix/tdr_games/brothers_on_death/brothers_on_death...
done.
(gdb)
> set prompt >>>>>>cb_gdb:
Executing: xterm -T 'Program Console' -e sleep 84325
>>>>>>cb_gdb:
> show version
GNU gdb (GDB) 7.0-ubuntu
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
.
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set disassembly-flavor intel
>>>>>>cb_gdb:
> cd /home/toto/Bureau/tdr/build/CodeBlocksUnix/tdr_games/brothers_on_death
>>>>>>cb_gdb:
> directory /home/toto/Bureau/tdr/tdr_engine/src
>>>>>>cb_gdb:
> directory /home/toto/Bureau/tdr/tdr_engine_impl/src
>>>>>>cb_gdb:
> directory /home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src
>>>>>>cb_gdb:
> directory /home/toto/Bureau/tdr/tdr_games/brothers_on_death/src
>>>>>>cb_gdb:
> directory /home/toto/Bureau/tdr/
>>>>>>cb_gdb:
> break "/home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp:145"
No source file named /home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp.
Breakpoint 1 ("/home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp:145) pending.
>>>>>>cb_gdb:
> break "/home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp:158"
No source file named /home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp.
Breakpoint 2 ("/home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp:158) pending.
>>>>>>cb_gdb:
> break "/home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp:156"
No source file named /home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp.
Breakpoint 3 ("/home/toto/Bureau/tdr/tdr_games/brothers_on_death/src/main_rpg_brothers_on_death.cpp:156) pending.
>>>>>>cb_gdb:
> break "/home/toto/Bureau/tdr/tdr_engine_impl/src/tdr_engine.cpp:301"
No source file named /home/toto/Bureau/tdr/tdr_engine_impl/src/tdr_engine.cpp.
Breakpoint 4 ("/home/toto/Bureau/tdr/tdr_engine_impl/src/tdr_engine.cpp:301) pending.
>>>>>>cb_gdb:
> break "/home/toto/Bureau/tdr/tdr_engine_impl/src/tdr_engine.cpp:295"
No source file named /home/toto/Bureau/tdr/tdr_engine_impl/src/tdr_engine.cpp.
Breakpoint 5 ("/home/toto/Bureau/tdr/tdr_engine_impl/src/tdr_engine.cpp:295) pending.
>>>>>>cb_gdb:
> break "/home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src/tdr_grafbox_sdl.cpp:39"
No source file named /home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src/tdr_grafbox_sdl.cpp.
Breakpoint 6 ("/home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src/tdr_grafbox_sdl.cpp:39) pending.
>>>>>>cb_gdb:
> break "/home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src/tdr_grafbox_sdl.cpp:31"
No source file named /home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src/tdr_grafbox_sdl.cpp.
Breakpoint 7 ("/home/toto/Bureau/tdr/tdr_engine_impl/tdr_engine_impl_sdl/src/tdr_grafbox_sdl.cpp:31) pending.
>>>>>>cb_gdb:
Executing: ps x -o tty,pid,command
PS result: ?         9449 ps x -o tty,pid,command
PS result: pts/2     9448 sleep 84325
TTY is[/dev/pts/2]
GetConsoleTTY[/dev/pts/2]ConsolePid[9447]
> tty /dev/pts/2
Queued:[tty /dev/pts/2]
>>>>>>cb_gdb:
> run
[Thread debugging using libthread_db enabled]
[New Thread 0x116bb70 (LWP 9453)]
[Thread 0x116bb70 (LWP 9453) exited]
Program exited with code 0377.
>>>>>>cb_gdb:
> quit

Laposte.net, Messager Officiel du Rallye des Gazelles 2010, Pour suivre le Rallye Aicha des Gazelles et soutenir les participantes,
cliquez ici   http://www.laposte.net/rallye-des-gazelles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100323/b2e765e2/attachment-0001.htm>


More information about the CMake mailing list