The Console Window

The Console Window provides the traditional command-line interface to GDB. It is very similar to the command-line you get when GDB is run with "-nw".

Console Display

The Console Display is simply a scrolled window in which the debugger prompt appears. By default, the prompt is set to "(gdb) ", but it may be changed via a command line option.

To execute commands in the console window, simply enter the command in the display. If the debugger is busy, the message "Error: The debugger is busy." appears informing the user that the command was not accepted.

Whenever a command is executed, the debugger's windows will update to display any new state information. Any output from the command is also echoed to the Console Window for ease of use. If an error occurs, an error message is printed to the Console Window. All error messages appear in the Console Window using a red typeface.


Editing Commands

The Console Window shell has many powerful features to help edit commands.

History Commands


Getting Help

The Console Window has its own online help system. To access the help system, enter "help" at the prompt and follow the on-screen instructions. For more help, please consult the GDB User's Guide.