1.3.11. Debug Options¶
The c29clang 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 c29clang 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 c29clang 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.