6.1.2 Running GDB

This section describes how to initiate the debugger.

You can launch the debugger from a GNAT Studio menu or directly from the command line. The description below covers the latter use. You can use all the commands shown in the GNAT Studio debug console window, but there are usually more GUI-based ways to achieve the same effect.

The command to run GDB is

$ gdb program

where program is the name of the executable file. This activates the debugger and results in a prompt for debugger commands. The simplest command is simply run, which causes the program to run exactly as if the debugger were not present. The following section describes some of the additional commands that you can give to GDB.