catch subcommand for dbx: Start trapping a signal

Format

catch [signalnumber | signalname]

Description

The catch subcommand starts the trapping of a specified signal before that signal is sent to the application program. This subcommand is useful when the application program being debugged handles such signals as interrupts. The signal to be trapped can be specified by number or by name using either the signalnumber or the signalname argument, respectively. Signal names are case-insensitive, and the SIG prefix is optional. All signals are caught by default except the SIGDUMP,SIGHUP, SIGCHLD, SIGALRM, and SIGKILL signals. If no arguments are specified, the current list of signals to be caught is displayed.

Usage notes

The catch subcommand can be run only while the dbx debug program is running.

Examples

  1. To display a current list of signals to be caught by dbx, enter:
    catch
  2. To trap signal SIGALRM, enter:
    catch SIGALRM
    or:
    catch ALRM
    or:
    catch 14

Related information

The ignore subcommand.