gdwarf-2

Enables generation of debug information using the DWARF2 format.

IDE Equivalent

None

Architectures

IA-32 architecture, Intel® 64 architecture, IA-64 architecture

Syntax

Linux and Mac OS: -gdwarf-2
Windows:  None

Arguments

None

Default

OFF No debug information is generated. However, if compiler option -g is specified, debug information is generated in the latest DWARF format, which is currently DWARF2.

Description

This option enables generation of debug information using the DWARF2 format. This is currently the default when compiler option -g is specified.

Alternate Options

None

See Also

g compiler option