Others

There are a number of other debugger features used less frequently and not very well integrated in the new front end but which are still working.

6.8.1. Dynamically loaded Libraries

To obtain a list of the dynamic libraries used by a program, choose the menu item Debug ▸ Info ▸ Shared Libraries. This will bring open a window which will list all shared libraries the program has loaded and their locations in memory. It also shows whether each library's symbol table is loaded or not (Yes/No).

Figure 6-6Shared Libraries window

6.8.2. 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 Debug ▸ Info ▸ Kernel Signals. A window will open which lists all signals available in the system along with a brief description of each signal.

Figure 6-7Kernel Signals window

There are three columns which specify what to do when a 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.

The context menu that is displayed when you click on the right mouse button has all its items disabled because the corresponding functions are not implemented yet.

6.8.3. Information about used files

You can get some information about the files used by the debugged program by choosing the menu item Debug ▸ Information ▸ Target files. A window will open displaying this information.

6.8.4. Information about debugged program

You can get some information about the debugged program by choosing the menu item Debug ▸ Information ▸ Program. A window will open displaying this information.

6.8.5. Information about kernel structure

You can get some information about kernel data for the current process by choosing the menu item Debug ▸ Information ▸ Kernel user struct. A window will open displaying this information.

6.8.6. Information about global variables

You can list all global variables by choosing the menu item Debug ▸ Information ▸ Info Global Variable. A window will open listing all global variables.

6.8.7. Information about the current frame

You can obtain information about the currently selected frame by choosing the menu item Debug ▸ Information ▸ Info Current Frame. A window will open describing the current frame.

6.8.8. Information about the current function arguments

You can obtain information about the arguments of the current function by choosing the menu item Debug ▸ Information ▸ Arguments. A window will open describing the arguments.

6.8.9. User command

To send directly a command to the back end choose the menu item Debug ▸ Debugger command. This will bring a small dialog where you can enter commands that will be send to the debugger when you press Return.

The front end sends this command directly to the back end without performing any checks. By example if you set a breakpoint like this, it will not appear in the breakpoint list window. It is better to avoid using this command unless you know exactly what you are doing.