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/ARM-CGT: Debug information for preprocessor macros

Part Number: ARM-CGT

Tool/software: TI C/C++ Compiler

Hello,

Does TI ARM compiler support generating Debug information for preprocessor macros?

(Simmilarly to how gcc generates ".debug_macro" section in elf file when using -g3 compilation parameter)

Kind Regards,

Adam

  • I had a look at a program compile with TI ARM v20.2.2.LTS using -g --symdebug:dwarf_version=4

    On the generated .out file:

    • readelf -S is not reporting any .debug_macro sections
    • objdump --dwarf is not reporting any DW_AT_GNU_macros nor DW_AT_macros tags

    I.e. looks like the TI compiler doesn't support generating Debug information for preprocessor macros.