-qdbxextra

Category

Error checking and debugging

Pragma equivalent

#pragma options dbxextra

Purpose

When used with the -g option, specifies that debugging information is generated for unreferenced typedef declarations, struct, union, and enum type definitions.

To minimize the size of object and executable files, the compiler only includes information for typedef declarations, struct, union, and enum type definitions that are referenced by the program. When you specify the -qdbxextra option, debugging information is included in the symbol table of the object file. This option is equivalent to the -qsymtab=unref option.

Syntax

Read syntax diagramSkip visual syntax diagram
        .-nodbxextra-.   
>>- -q--+-dbxextra---+-----------------------------------------><

Defaults

-qnodbxextra: Unreferenced typedef declarations, struct, union, and enum type definitions are not included in the symbol table of the object file.

Usage

Using -qdbxextra may make your object and executable files larger.

Predefined macros

None.

Examples

To compile myprogram.c so that unreferenced typedef, structure, union, and enumeration declarations are included in the symbol table for use with a debugger, enter:
xlc myprogram.c -g -qdbxextra

Related information