B.6 System-wide configuration and settings

gdb can be configured to have a system-wide init file; this file will be read and executed at startup (see What gdb does during startup).

Here is the corresponding configure option:

--with-system-gdbinit=file
Specify that the default location of the system-wide init file is file.

If gdb has been configured with the option --prefix=$prefix, it may be subject to relocation. Two possible cases: