What debug info formats are supported? Is DWARF version 4 supported?
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.
What debug info formats are supported? Is DWARF version 4 supported?
For the TI ARM compiler, as of version 5.0.x, the default debug format is Dwarf version 3. Older compilers default to Dwarf version 2, but you can choose version 3 with the build switch --symdebug:dwarf_version=3.
Thanks and regards,
-George
Hi George,
Thank you for the info, but that's not exactly what I asked...
If I compile something with G++ and include DWARF version 4, will CSS support it?
Best,
Vasili
Hi Vasili,
here is some further feedback:
Dwarf 4 support : Yes
GCC extension support : No
So for gcc/g++, a user needs to use –gstrict-dwarf option to restrict GCC to use strict DWARF tags.
As of 5.4, CCS does not know how to skip GCC extension DWARF tags properly, CCS may load the debug info incorrectly and/or CCS may crash.
For 5.5, we are looking to add code to skip these extension tags properly, CCS can load the object files without crash but ignore the extension tags
We are working on support for GCC extension support for future release. (maybe 6.0)
Hope this helps.
Best Regards,
Lisa
Hi Lisa,
It seems what you said isn't entirely accurate.
I'm using CCS 5.4. It loads binary compiled with "-g -gdwarf-3 -gstrict-dwarf" fine.
But complains "DWARF information is corrupted" for binary compiled with "-g -gdwarf-4 -gstrict-dwarf".
Best,
Vasili