This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

gdb no debug symbols found

Hi - I'm trying to use the pure-gcc make files and I've got my project building and the code is running, but when I try to launch startdebug gdb it reports no debugging symbols found:

Reading symbols from <path to my .elf file>...(no debugging symbols found)...done. 0x00000000 in ?? ()

I know the pure-gcc files are not officially supported, but I noticed they do not generate a .out file, so I can't use the method that Ole has recommended here with loading the .out file.

Any pointers would be appreciated!

-Jason

Parents
  • If you use my Makefiles, from the nrf51-pure-gcc-setup repository, you must remember to set the CFLAGS to -g in your project Makefile to get gcc to compile in debugging symbols. See for example this Makefile, which currently have only -Os (optimize for size) as a parameter. If you add -g, you should get debuging symbols.

    However, the .out file is equivalent with the .elf or .axf file. The exact name is dependent on how the Makefiles are set up.

Reply
  • If you use my Makefiles, from the nrf51-pure-gcc-setup repository, you must remember to set the CFLAGS to -g in your project Makefile to get gcc to compile in debugging symbols. See for example this Makefile, which currently have only -Os (optimize for size) as a parameter. If you add -g, you should get debuging symbols.

    However, the .out file is equivalent with the .elf or .axf file. The exact name is dependent on how the Makefiles are set up.

Children
Related