When a new object file is read (for example, due to the
command, or because the inferior has loaded a shared library),
gdb will look for the command file objfile-gdb.gdb.
See Auto-loading extensions.
Auto-loading can be enabled or disabled, and the list of auto-loaded scripts can be printed.
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.