Chapter 14. Controlling the Debugger

Table of Contents
14.1. Prompt
14.2. Command Editing
14.3. Command History
14.4. Screen Size
14.5. Numbers
14.6. Optional Warnings and Messages

You can alter the way the debugger interacts with you by using the set command. For commands controlling how the debugger displays data, see Section 8.7; other settings are described here.

14.1. Prompt

The debugger indicates its readiness to read a command by printing a string called the prompt. This string is normally "(gdb)". You can change the prompt string with the set prompt command.

set prompt newprompt

Directs the debugger to use newprompt as its prompt string henceforth.

show prompt

Prints a line of the form: "Gdb's prompt is: your-prompt"