News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

When debugging source is not shown

Started by ondra.holub, February 27, 2008, 01:41:02 PM

Previous topic - Next topic

ondra.holub

Hello.

When I am debugging with gdb, everything works fine for ordinary source files. However I have some sources in files named *.tpl (implementation of templates). Fro debugger's log I see, it correctly stopped on required breakpoint, but the IDE does not show this source and does not select the line, where program stopped. Stepping works well (according to log), but I have to "manually follow" the debugger (manually select correct line). Do I have to enable files with unusual extension somehow?

Thank you for any hint.
Ondrej

OS: WinXP (home and professional)
Code::Blocks: SVN 4875
GDB: 6.7

Log of gdb:
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Win Debug
Adding source dir: D:\prog\wxtksl\new\tksl_new_20080227\
Adding source dir: D:\prog\wxtksl\new\tksl_new_20080227\
Adding file: bin\Debug\tksl.exe
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 6.7.50.20071127
Child process PID: 4952
At D:/prog/wxtksl/new/tksl_new_20080227/parser.tpl:257
At D:/prog/wxtksl/new/tksl_new_20080227/parser.tpl:263


From highlighted two last lines I see, debugger works correctly.