1.3.11. Debug Options¶
The tiarmclang compiler supports the following command-line option to facilitate generation of C/C++ source debug information:
-
-g
,
-gdwarf
¶
Generate source-level debug information with the default DWARF version (3)
-
-gdwarf-2
¶
Generate source-level debug information with DWARF version 2
-
-gdwarf-3
¶
Generate source-level debug information with DWARF version 3
-
-gdwarf-4
¶
The tiarmclang compiler does not support generating DWARF version 4 debug information yet. If the -gdwarf-4 option is specified, the compiler will emit a warning diagnostic and emit DWARF version 3 instead.
-
-gdwarf-5
¶
The tiarmclang compiler does not support generating DWARF version 5 debug information yet. If the -gdwarf-5 option is specified, the compiler will emit a warning diagnostic and emit DWARF version 3 instead.