-qdbgfmt

Category

Error checking and debugging

@PROCESS

@PROCESS DBGFMT({stabstring | dwarf | dwarf4})

Purpose

Specifies the format for the debugging information in object files.

DWARF is a standard that defines the format of debugging information in programs. It is used on a wide variety of operating systems and is extensible and compact.

Syntax

Read syntax diagramSkip visual syntax diagram
                   .-stabstring-.   
>>- -q--dbgfmt--=--+-dwarf------+------------------------------><
                   '-dwarf4-----'   

Defaults

-qdbgfmt=stabstring

Parameters

stabstring
Generates debugging information in stabstring format.

Fortran 2008 beginsFortran 2003 beginsNote: This suboption does not generate debugging information for Fortran 2003 or Fortran 2008 features. Use the dwarf or dwarf4 suboption instead for these features.Fortran 2003 endsFortran 2008 ends

dwarf
Generates debugging information in DWARF 3 format.
dwarf4
Generates debugging information in DWARF 4 format.
Notes:
  • To use -qdbgfmt=dwarf or -qdbgfmt=dwarf4, the program must be compiled and linked on AIX® V7.1 or above.
  • To debug programs built with -qdbgfmt=dwarf or -qdbgfmt=dwarf4, a DWARF-enabled debugger such as dbx is required.

Usage

-qdbgfmt does not imply any of the debugging options, such as -g. For example:
  • To generate debugging information in stabstring format, use -g -qdbgfmt=stabstring.
  • To generate debugging information in DWARF 3 format, use -g -qdbgfmt=dwarf.
  • To generate debugging information in DWARF 4 format, use -g -qdbgfmt=dwarf4.

-qdbgfmt also applies to -qlinedebug, which generates a subset of -g information. For example, you can use -qlinedebug -qdbgfmt=dwarf to generate line number information in DWARF 3 format.

Related information