Name
history
set historyfeature
show historyfeature
Control different aspects of GDB’s command history. Values and meanings for feature are as follows:
set history expansion
show history expansion
Use
csh
-style!
commands for history operations. The default isoff
.set history filename
file
show 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 save
show history save
Enable saving/restoring of the command history.
set history size
amount
show 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.