The following options are used to select symbolic debugging:
--symdebug:dwarf | (Default) Generates directives that are used by the C/C++ source-level debugger and enables assembly source debugging in the assembler. The --symdebug:dwarf option's short form is -g. See Section 3.12.
For more information on the DWARF debug format, see The DWARF Debugging Standard. |
--symdebug:dwarf_
version={2|3|4} |
Specifies the DWARF debugging format version (2, 3, or 4) to be generated when --symdebug:dwarf (the default) is specified. By default, the compiler generates DWARF version 3 debug information. DWARF versions 2, 3, and 4 may be intermixed safely. When DWARF 4 is used, type information is placed in the .debug_types section. At link time, duplicate type information will be removed. This method of type merging is superior to those used in DWARF 2 or 3 and will result in a smaller executable. In addition, DWARF 4 reduces the size of intermediate object files in comparison to DWARF 3. For more information on TI extensions to the DWARF language, see The Impact of DWARF on TI Object Files (SPRAAB5). |
--symdebug:none | Disables all symbolic debugging output. This option is not recommended; it prevents debugging and most performance analysis capabilities. |
--symdebug:skeletal | Deprecated. Has no effect. |