-qsigtrap

Category

Error checking and debugging

@PROCESS

None.

Purpose

Sets up the specified trap handler to catch SIGTRAP and SIGFPE exceptions when compiling a file that contains a main program.

This option enables you to install a handler for SIGTRAP or SIGFPE signals without calling the SIGNAL subprogram in the program.

Syntax

Read syntax diagramSkip visual syntax diagram
>>- -q--sigtrap--+-----------------+---------------------------><
                 '-=--trap_handler-'   

Defaults

Not applicable.

Usage

To enable the xl__trce trap handler, specify -qsigtrap without a handler name. To use a different trap handler, specify its name with the -qsigtrap option.

If you specify a different handler, ensure that the object module that contains it is linked with the program. To show more detailed information in the tracebacks generated by the trap handlers provided by XL Fortran (such as xl__trce), specify the -qlinedebug or -g option.

Related information