C/C++ and Fortran

 View Only

Use options to generate debugging information in DWARF format

By Archive User posted Thu October 09, 2014 05:12 AM

  

Originally posted by: ChristineLi


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.
You can specify -qdbgfmt=dwarf to generate debugging information in DWARF 3 format and -qdbgfmt=dwarf4 to generate debugging information in DWARF 4 format.
The default setting for AIX is -qdbgfmt=stabstring, which does not generate debugging information for Fortran 2003 or Fortran 2008 features. Use the dwarf or dwarf4 suboption instead for these features, but note that the dwarf or dwarf4 suboption requires the program to be compiled and linked on AIX V7.1 or above.
The default for Linux is -qdbgfmt=dwarf.
To debug programs built with -qdbgfmt=dwarf or -qdbgfmt=dwarf4, a DWARF-enabled debugger such as dbx is required.
In addition, -qdbgfmt does not imply any of the debugging options, such as -g. You still need to specify those debugging options if necessary.

For more information, see the following topics in IBM Knowledge Center:

 

 

 

0 comments
3 views

Permalink