-qsigtrap
Category
@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.
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
- XL Fortran runtime exceptions describes the possible causes of exceptions.
- Detecting and trapping floating-point exceptions describes a number of methods for dealing with exceptions that result from floating-point computations.
- Installing an exception handler lists the exception handlers that XL Fortran supplies.



