I've seen several topics on this issue but most of them were quite old and for the life of me all the solutions I've tried from these topics have not fixed this problem.
I'm currently using Code::Blocks as my main development method for embedded software. (The dreaded Em::Blocks works very nicely but the old layout, no linux and the fuzzy license make me wanna stick with the original
)
To debug I use my trusty openOCD and the current Windows version of the latest 4.9 GNU compiler and gdb for ARM Embedded.
Manually setting breakpoints via the Code::Blocks debugger command line such as 'break main' or 'main.cpp:150' work fine and get triggered correctly to prove my binary included debug symbols.
When setting a breakpoint via the GUI I get the dreaded 'Source file not found' error. In the past there seems to have been an option to compile with full path (GDB Workaround) but I can't find this option anymore.
Besides that, since the the debug symbols seem to be compiled relativly isn't there an option to tell Code::Blocks to reference the source files also relatively towards gdb?