The system-gdbinit directory, located inside the data-directory (as specified by --with-gdb-datadir at configure time) contains a number of scripts which can be used as system-wide init files. To automatically source those scripts at startup, GDB should be configured with --with-system-gdbinit. Otherwise, any user should be able to source them by hand as needed.
The following scripts are currently available:
ENV_PREFIX
to be set to
the host-side sysroot used by the target system.