When I try to set a breakpoint in eclipse by clicking on a line, gdb tells me in the eclipse "Console" window below the code: "No symbol table is loaded. Use the "file" command." The execution never stops as the breakpoint doesn't seam to get set. The J-Link GDB Interface doesn't tell me that it just set a breakpoint what I should do when it sets one.
Did anyone of you experience this? What is the solution to this so I can use the debugging feature?
You'll have to load the .out (or .elf) file using the file command in gdb:
Check out this thread:
Sorry, only worked on this again now.
The solution is to use the -g option to include debug symbols when compiling. When using pure-gcc add it to either the project makefile (ex. CFLAGS = -Os -g) or to the template.
You don't need to use the file command as Håkan proposed, eclipse does that for you if you have set it up according to nAN-29 (load symbols check box in the startup tab of the debug settings).