This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

gdb: No symbol table is loaded. Use the "file" command.

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?

My setup:

  • OSX Mavericks
  • Eclipse Kepler
  • pure-gcc setup
  • Command line J-Link GDB Server Interface
Parents Reply
  • 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).

Children
No Data
Related