Next: , Previous: The GNAT Debugger GDB, Up: Running and Debugging Ada Programs


26.2 Running GDB

This section describes how to initiate the debugger.

The debugger can be launched from a GPS menu or directly from the command line. The description below covers the latter use. All the commands shown can be used in the GPS 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 can be given to GDB.