Name

history

set history feature
show history feature

Control different aspects of GDB’s command history. Values and meanings for feature are as follows:

set history expansionshow history expansion

Use csh-style ! commands for history operations. The default is off.

set history filename fileshow history filename

Save the command history to file, and restore it from there upon startup. This overrides the default filename, which is taken from the value of the environment variable GDBHISTFILE if it is set. Otherwise, the default filename is ./.gdb_history.

set history saveshow history save

Enable saving/restoring of the command history.

set history size amountshow history size

Limit the number of saved history commands to amount.

Get GDB Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.