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.

Compiler/TMS320F28377D: How do I add DWARF debug information to hand-coded assembly files?

Part Number: TMS320F28377D

Tool/software: TI C/C++ Compiler

The question is in the title. In particular I am interested in tagging call frame information so that I can unwind the stack to obtain call stack information.

  • The only way to add DWARF information to the object file is through the various .dw directives; however, adding them by hand is not supported. It will work, but you are on your own. The directives have fairly self-explanatory names if you are familiar with the DWARF spec (see dwarfstd.org). Since all you want is the ability to unwind, you could compile a few dummy C functions and look at the generated assembly code to see what the compiler does. All you really need to do is to keep track of where the save-on-entry registers have been saved, and any stack increment.