Debugging a Program With dbx

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 get a prompt. You then have two choices:

  1. "Cancel" the signal when the program is resumed--the default behavior of cont--facilitating easy interruption and resumption with SIGINT (Control-C).

    Graphic
  2. "Forward" the signal to the process using:


    cont -sig sig
    

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


ignore sig #
"ignore" 

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