gdb tries to load an objfile-gdb.gdb file containing canned sequences of commands (see Sequences), as long as ‘set auto-load gdb-scripts’ is set to ‘on’.
Note that loading of this script file also requires accordingly configured
auto-load safe-path (see Auto-loading safe path).
For more background refer to the similar Python scripts auto-loading description (see objfile-gdb.py file).
set auto-load gdb-scripts [on|off]
show auto-load gdb-scripts
info auto-load gdb-scripts [regexp
If regexp is supplied only canned sequences of commands scripts with matching names are printed.