Skip to main content

Is it possible to see the value of a C macro in TRACE32? - Knowledgebase / TRACE32 PowerView - Lauterbach Support

Is it possible to see the value of a C macro in TRACE32?

Macros are generally not part of the DWARF debug information in the ELF file. The debugger can thus not know their values. But you can declare your macros in TRACE32:

sYmbol.CREATE.MACRO MACRO_1 < contents >
sYmbol.CREATE.MACRO MACRO_2 < contents >
sYmbol.CREATE.Done

You can display the list of manually created macros with:

sYmbol.List.MACRO

Sometimes, the compiler can also export the macro information into the ELF file. This is done for the GCC compiler using the command line -g3 option which exports the macro information in the ".debug_macinfo" section. If you are loading such an ELF file using the Data.LOAD.Elf command, use then the /MACRO option to import the macro information to TRACE32.

Helpful Unhelpful

1 of 1 people found this page helpful