|Debugging with GDB|
You can set the default data directory by using the configure-time ‘--with-gdb-datadir’ option. If the data directory is inside gdb's configured binary prefix (set with ‘--prefix’ or ‘--exec-prefix’), then the default data directory will be updated automatically if the installed gdb is moved to a new location.
The data directory may also be specified with the
--data-directory command line option.
See Mode Options.