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.
Tool/software: TI C/C++ Compiler
Hello
I'm developing real-time monitoring system of C2000 and I need to support both legacy debugging model (--symdebug:coff) and new one (--symdebug:dwarf).
Output format is fixed to be legacy COFF.
Is there any quick and easy way to detect which debugging model is used in legacy COFF file? Like some way using ofd2000.exe ?
Thanks in advance.
COFF debug format has not been supported by the C28x compiler for several years. The last group of releases to support it is 15.12.x.LTS. You should give some serious consideration to removing support for COFF.
To directly answer your question ... The best way is to see if the object file contains any sections with a name that begins .debug_. For instance, .debug_info or .debug_line. If you see any such section, then Dwarf debug is used. If you do not see any such section, then COFF debug is used.
Thanks and regards,
-George
Hello George
Thanks for your advice.
I checked with ofd2000 that even COFF debug includes debug_info section.
But it looks like these sections are for TI own code (ex, args_main.c, _lock.c, startup.c, boot28.inc), not for my own code.
Is there any further way ?
Thanks and regards, Daewoong
easydsp said:I checked with ofd2000 that even COFF debug includes debug_info section.
If a section named .debug_info is present, then the file contains debug information in Dwarf debug format.
easydsp said:But it looks like these sections are for TI own code (ex, args_main.c, _lock.c, startup.c, boot28.inc), not for my own code.
One possible explanation ... The RTS library is built with Dwarf debug information, and your code was built with COFF debug information. The tools can handle that combination.
easydsp said:Is there any further way ?
I'm not aware of any other method.
Thanks and regards,
-George