I have a slightly different problem that might be related - on Windows XP using CB SVN 5203 and gdb 6.8.
I am not sure this is a CodeBlocks issue - it might be due to gdb - but perhaps one of you guys can steer me in the right direction.
If I have inline code in a header file and set a break on one of the lines, gdb does not stop at the breakpoint.
I can Step into the function from the calling statement, say from main, but breakpoints and cursor locations are ignored when I do a Continue or Run to cursor inside the function.
The following is a typical debugger log output when I set a breakpoint (on line 84) inside the function:
Setting breakpoints
Debugger name and version: GNU gdb 6.8
No source file named C:/Dev/libs/lib/inc/romberg.h in loaded symbols.
Breakpoint 2 ("C:/Dev/libs/lib/inc/romberg.h:84) pending.
Child process PID: 408
Program exited normally.
Debugger finished with status 0
From the third line above it appears there may be a symbols issue, but I don't know why.
My project settings include:
Produce debugging symbols [-g] is set
Strip all symbols from binary [-s] is not set.
Also, I have no optimizations set.
I would appreciate any suggestions.