22.2 Command Editing
gdb reads its input commands via the Readline interface. This
gnu library provides consistent behavior for programs which provide a
command line interface to the user. Advantages are gnu Emacs-style
or vi-style inline editing of commands,
substitution, and a storage and recall of command history across
set editing on
- Enable command line editing (enabled by default).
set editing off
- Disable command line editing.
- Show whether command line editing is enabled.
See Command Line Editing, for more details about the Readline
interface. Users unfamiliar with gnu Emacs or
encouraged to read that chapter.