-qsigtrap

Category

Error checking and debugging

@PROCESS

None.

Purpose

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

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

Syntax

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

Defaults

Not applicable.

Usage

If you specify the -qsigtrap option without a handler name, the xl__trce trap handler is used by default. 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