#### 22.7.3 The `objfile-gdb.gdb` file

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]`
  Enable or disable the auto-loading of canned sequences of commands scripts.

`show auto-load gdb-scripts`
  Show whether auto-loading of canned sequences of commands scripts is enabled or disabled.

`info auto-load gdb-scripts [`regexp`]`
  Print the list of all canned sequences of commands scripts that gdb auto-loaded.

If regexp is supplied only canned sequences of commands scripts with matching names are printed.