diff options
author | Doug Evans <dje@google.com> | 2012-11-16 19:43:39 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-11-16 19:43:39 +0000 |
commit | e64e03922ca4da2d3da887a467076eda615c62bd (patch) | |
tree | c3042b366b8557853d7fe30243bd05fd26047bfa /gdb/doc | |
parent | 79f080079c7ea480a8b16b6d600536e628e558b4 (diff) | |
download | gdb-e64e03922ca4da2d3da887a467076eda615c62bd.zip gdb-e64e03922ca4da2d3da887a467076eda615c62bd.tar.gz gdb-e64e03922ca4da2d3da887a467076eda615c62bd.tar.bz2 |
* main.c (gdb_datadir_provided): New static global.
(get_init_files): If --data-directory is provided,
and SYSTEM_GDBINIT lives in data-directory, look for it there.
* NEWS: Mention it.
doc/
* gdb.texinfo (System-wide configuration): If the system-wide init
file lives in the data-directory, and --data-directory is provided,
look for it there.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index a774681..8fda5d5 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,9 @@ +2012-11-16 Doug Evans <dje@google.com> + + * gdb.texinfo (System-wide configuration): If the system-wide init + file lives in the data-directory, and --data-directory is provided, + look for it there. + 2012-11-15 Tom Tromey <tromey@redhat.com> * gdb.texinfo (Signaling): Fix typo. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 945a66b..80148f7 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -34765,6 +34765,17 @@ then @value{GDBN} will always look for @file{/usr/share/gdb/gdbinit}, wherever @value{GDBN} is installed. @end itemize +If the configured location of the system-wide init file (as given by the +@option{--with-system-gdbinit} option at configure time) is in the +data-directory (as specified by @option{--with-gdb-datadir} at configure +time) or in one of its subdirectories, then @value{GDBN} will look for the +system-wide init file in the directory specified by the +@option{--data-directory} command-line option. +Note that the system-wide init file is only read once, during @value{GDBN} +initialization. If the data-directory is changed after @value{GDBN} has +started with the @code{set data-directory} command, the file will not be +reread. + @node Maintenance Commands @appendix Maintenance Commands @cindex maintenance commands |