10 years, 1 month ago.

When trying to port to a new platform, how should I debug?

I'm trying to debug a bad binary built using the following:

$ py -2 workspace_tools/build.py -o debug-info -m TM4C123 -t GCC_ARM
Build Options: debug-info

>>> BUILD LIBRARY CMSIS (TM4C123, GCC_ARM)

>>> BUILD LIBRARY MBED (TM4C123, GCC_ARM)
Compile: ...
[etc]

$ py -2 workspace_tools/make.py -o debug-info -m TM4C123 -t GCC_ARM -p0
Build Options: debug-info

>>> BUILD PROJECT: BASIC (TM4C123, GCC_ARM)
Image: c:\Users\Eric\Repos\mbed\build\test\TM4C123\GCC_ARM\MBED_A1\basic.bin

However, when I try and debug with the generated elf file with

$ arm-none-eabi-gdb build/test/TM4C123/GCC_ARM/MBED_A1/basic.elf

I get the warning "no debugging symbols found".

Is there any easy way to get the build scripts to produce these symbols?

Be the first to answer this question.