Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public
Document Table of Contents

gdwarf

Lets you specify a DWARF Version format when generating debug information.

Syntax

Linux:

-gdwarf-n

macOS:

-gdwarf-n

Windows:

None

Arguments

n

Is a value denoting the DWARF Version format to use. Possible values are:

2

Generates debug information using the DWARF Version 2 format.

3

Generates debug information using the DWARF Version 3 format.

4

Generates debug information using the DWARF Version 4 format. This setting is only available on Linux*.

Default

OFF

No debug information is generated. However, if compiler option -g is specified, debugging information is generated in the DWARF Version 3 format.

Description

This option lets you specify a DWARF Version format when generating debug information.

Note that older versions of some analysis tools may require applications to be built with the -gdwarf-2 option to ensure correct operation.

IDE Equivalent

None

Alternate Options

None

See Also