In the following example, process control will return from the child process to the debugger when SIGALRM is generated.
CodeWatch> CATCH /IGNORE SIGALRM Changing SIGALRM to be caught and ignored.
When the child process resumes, it will ignore the SIGALRM and continue as if it had never generated a SIGALRM.
In the following example, the number 28 represents the signal SIGWINCH. Process control will return from the child process to the debugger when a SIGWINCH is generated.
CodeWatch> CATCH /NIGNORE 28 Changing SIGWINCH to be caught and not ignored.
When the child process resumes, it will recognize the signal SIGWINCH and continue as if it had incurred a SIGWINCH.
Description
The occurrence of a signal that is set to be caught and ignored will cause process control to return to the debugger. When the child (user) process is subsequently resumed (for example, by using Step or Continue), it will continue as if it had not incurred the given signal. The occurrence of a signal that is set to be caught and not ignored (/NIGNORE), will cause process control to return to the debugger. When the child process is subsequently resumed, it will continue as if it had incurred the given signal. The occurrence of a signal that is not set to be caught will not cause process control to return to the debugger.
By default, certain signals are caught by the debugger. The Default option will reset all CATCH settings back to the debugger's default settings.
Use the command LCATCH /ALL to get a list of current signal settings.