Debugging: Others

There are a number of other debugger features which are used less frequently, but are nevertheless handy.

Kernel Signals

Kernel signals are a way of signaling between processes in Linux. The list of signals available for a program can be displayed by choosing the menu item View->Kernel Signals. A window will open which lists all of the signals available in the system along with a brief description of each signal.

Figure 1. Kernel Signals window

There are three columns which specify what to do when the signal is received:

  1. Stop — this tells the debugger whether to stop the program execution (and return control) when the program receives this signal.

  2. Print — this tells the debugger whether to display the received signal.

  3. Pass — this tells the debugger whether to pass the signal to the program.

Changing behaviour on signals

To change the way debugger behaves when a particular signal is received, select the signal in the list. Right-click to open the Operation menu. Choose Modify Signal. This will open a dialog. Set the three behaviours and click OK to commit the change.

Figure 2. Modify Kernel Signal dialog

Sending the signal to the program

To explicitly sent the signal to the program being debugged, select the signal in the given list. Right-click to open the Operation menu. Choose the menu item Send to process. A confirmation dialog will appear. Click OK to confirm and send the signal to the program.

Updating the signal list

Choose the menu item Update from the Operation menu (right-click in the Kernal Signals window to open) to refresh the Kernel Signals window.