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


23.2 Running GDB

The debugger can be launched directly and simply from glide or through its graphical interface: gvd. It can also be used directly in text mode. Here is described the basic use of GDB in text mode. All the commands described below can be used in the gvd console window even though there is usually other more graphical ways to achieve the same goals.

The command to run the graphical interface of the debugger is

     $ gvd program

The command to run GDB in text mode 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.