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.

CCS/TMS320F28377D: Debug Options to get the symbol table

Part Number: TMS320F28377D


Tool/software: Code Composer Studio

Hi,

I am planning to use latest Code Composer Studio (Version 9) and latest compiler (Version 19.6) for our application using the F28377D controller. I believe Symbolic Debug option (--symdebug:coff) is no longer supported by the new compiler 19.6.

Could you please let me know other methods to generate symbol table. Also please share the tools information to generate symbol table from executable(.out or .elf)

Thanks & Regards,

Munaf

  • I need to define some terminology.  The compiler option --symdebug:coff has nothing to do with the symbol table.  It designates the format of the debug information.  A symbol table maps symbol names to information related to those names, especially the memory address.  Debug information is used by a debugger such as CCS to know information about the program.  Examples of this information include how to map a program address to a line of source code, or the type of a variable.  In the history of TI compilers, two formats have been used for the debug information.  The older one is called coff, and the newer one is called dwarf.

    So, to restate your question in proper terms ... You want to know what replaces coff debug format.  The answer is dwarf.  The long form of the compiler option is --symdebug:dwarf, but you can also use the short form option -g.  For a long time, CCS accepted both coff and dwarf debug formats.  At some point, I think it will stop accepting coff.

    Thanks and regards,

    -George

  • Hi George,

    Thank you for the quick reply.

    My requirement is, I need to know the address of each variables in the software, that includes, all the global variables, structures, structure members address and variable data type.

    I understood that, map file gives me the address of the variables, but it does not give all the info that i am looking for..

    In my previous application i have used coff debug option and generated the .out executable, then generated the symbol table from the executable. This application was on F28335, CCS 3.3 and 5.1.3 CGT. 

    Now i have migrated to newer version of CCS and compiler. As you said newer compiler does not support --symdebug:coff debug format. So i am looking for options to generate symbol table where i can have all the variables, address and its data type ranges, form dwarf debug format.

    Thanks & Regards,

    Munaf

  • Your request is very similar to the one discussed in this forum thread.

    Thanks and regards,

    -George