Oracle® Solaris Studio 12.4: Debugging a Program With dbx

Exit Print View

Updated: January 2015
 
 

Catching Signals

dbx supports the catch command, which instructs dbx to stop a program when dbx detects any of the signals appearing on the catch list.

By default, the catch list contains many of the more than 33 detectable signals. (The numbers depend upon the operating system and version.) You can change the default catch list by adding signals to or removing them from the default catch list.


Note -  The list of signal names that dbx accepts includes all of those supported by the versions of the Oracle Solaris operating environment that dbx supports. So dbx might accept a signal that is not supported by the version of the Oracle Solaris operating environment you are running. For example, dbx might accept a signal that is supported by the Solaris 9 OS even through you are running the Solaris 7 OS. For a list of the signals supported by the Oracle Solaris OS that you are running, see the signal(3head) man page.

To see the list of signals currently being trapped, type catch with no signal argument.

(dbx) catch

To see a list of the signals currently being ignored by dbx when the program detects them, type ignore with no signal argument.

(dbx) ignore