Jump to content
Sign in to follow this  
akhilpo

GDB complaints "no debugging symbols found"

Recommended Posts

Hi,

I am trying to learn debugging Stellaris launchpad using gcc. I am using the GCC arm embedded toolchain. And I am trying to debug the blinky example project in the stellarisware. But GDB complains that it can't find the debuggin symbols. I have tried defining the symbol "DEBUG" in the source code, but that failed. Please tell me how I can fix this issue?

Akhils-MacBook-Pro:blinky akhil$ arm-none-eabi-gdb gcc/blinky.axf 
GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140731-cvs
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-apple-darwin10 --target=arm-none-eabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /Users/akhil/work/blinky/gcc/blinky.axf...(no debugging symbols found)...done.

Share this post


Link to post
Share on other sites

I have fixed it. I changed the -Os flag in 'makedef' file in stellarisware to -O0. And then recompiled the whole stellaris library. Now its showing the debug symbols.

Share this post


Link to post
Share on other sites

Hi,

You can add the DEBUG directive with -DDEBUG in Makefile.

You may use also the Eclipse to get an IDE with automatic makefile generation.

L

Share this post


Link to post
Share on other sites

Hi,

You can add the DEBUG directive with -DDEBUG in Makefile.

You may use also the Eclipse to get an IDE with automatic makefile generation.

L

 

Does it work if there is -Os flag set?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×