This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Symbolic Debug of Assembly Code Not Working

Issue has been reproduced in both:

  • CCS 5.1.0, Windows XP SP3
  • CCS 5.1.1, Ubuntu 10.04 64-bit

The issue is the same in both cases.  I am trying to debug u-boot-spl code.  The actual u-boot-spl was built using gcc compiler.  I'm using a hardware breakpoint to halt at the beginning and then I load symbols.

If I type the symbol name of a C function into the disassembly window then everything works as expected.  Here's a "good" screenshot, i.e. when I type "mmc_init" I see the symbol mmc_init displayed as well as corresponding code.

In that same case above when I hit that breakpoint the corresponding C source code opens and I can step through it.  That's all as expected.  Now here's the "bad" case...

For an assembly function I can type in the name (e.g. lowlevel_init).  In this case the assembler seems to understand what I'm talking about since the disassembly window jumps to the address/code corresponding to the function.  However, it does not show the symbol name in the disassembly window:

Can you understand why I cannot do symbolic debug for assembly functions?  For a while I thought it was a build issue, but eventually I used our ofd tool from the compiler and verified that all the necessary symbolic info was indeed in the file.  That's what led me to try the test above.  I've attached both the ELF executable and the ofd output in case you'd like to see them.

Thanks,
Brad

example.zip