Go to main content
Oracle® Developer Studio 12.6: Debugging a Program with dbx

Exit Print View

Updated: June 2017
 
 

Understanding Signal Events

When a signal is to be delivered to a process that is being debugged, the signal is redirected to dbx by the kernel. When this happens, you usually receive a prompt. You then have two choices:

  • Cancel the signal when the program is resumed (the default behavior of the cont command), facilitating easy interruption and resumption with SIGINT (Control-C), as shown in Figure 2.

  • Forward the signal to the process using the following command:

    cont -sig signal

    signal can be either a signal name or a signal number.

Figure 2  Intercepting and Cancelling the SIGINT Signal

image:Diagram of the normal case where the signal is delivered and the debugging case where the signal is intercepted and cancelled by dbx.

In addition, if a certain signal is received frequently, you can arrange for dbx to forward the signal automatically because you do not want it displayed:

ignore signal

However, the signal is still forwarded to the process. A default set of signals is automatically forwarded in this manner (see ignore Command).