www.delorie.com/gnu/docs/gcc/gnat_ug_232.html   search  
 
Buy the book!


Untitled Document

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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 eventhough there is usually other more graphical ways to achieve the same goals.

The command to run de graphical interface of the debugger is
 
$ gvd program

The command to run GDB in text mode is

 
$ ^gdb program^$ GDB PROGRAM^

where ^program^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.


  webmaster     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003