diff options
author | Christian Biesinger <cbiesinger@google.com> | 2019-10-13 07:12:34 -0500 |
---|---|---|
committer | Christian Biesinger <cbiesinger@google.com> | 2019-10-29 13:43:04 -0500 |
commit | ed2a222951020d1117c5e1d4f37e82fd26761267 (patch) | |
tree | dfdcc500b315f3d576b8b8e0fa1a9ced2104da32 /gdb/doc/Makefile.in | |
parent | 70cf683455e1a3429d517a2e25a36c438474cfde (diff) | |
download | gdb-ed2a222951020d1117c5e1d4f37e82fd26761267.zip gdb-ed2a222951020d1117c5e1d4f37e82fd26761267.tar.gz gdb-ed2a222951020d1117c5e1d4f37e82fd26761267.tar.bz2 |
Load system gdbinit files from a directory
Adds a configure option --with-system-gdbinit-dir to specify a directory
in which to look for gdbinit files. All files in this directory are
loaded on startup (subject to -n/-nx as usual) as long as the extension
matches a known and enabled scripting language (.gdb/.py/.scm).
This also changes get_ext_lang_of_file to support ".gdb" files, similar
to get_ext_lang_defn's handling of EXT_LANG_GDB.
gdb/ChangeLog:
2019-10-29 Christian Biesinger <cbiesinger@google.com>
* NEWS: Mention new --with-system-gdbinit-dir option.
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac: Add new option --with-system-gdbinit-dir.
* extension.c (get_ext_lang_of_file): Return extension_language_gdb
for a ".gdb" suffix.
* main.c (get_init_files): Change system_gdbinit argument to
a vector and return the files in SYSTEM_GDBINIT_DIR in
addition to SYSTEM_GDBINIT.
(captured_main_1): Update.
(print_gdb_help): Update.
* top.c (print_gdb_configuration): Also print the value of
SYSTEM_GDBINIT_DIR.
gdb/doc/ChangeLog:
2019-10-29 Christian Biesinger <cbiesinger@google.com>
* Makefile.in: Also set SYSTEM_GDBINIT_DIR for the info manual
generation.
* gdb.texinfo (many sections): Document new --with-system-gdbinit-dir
option.
Change-Id: If233859ecc21bc6421d589b37cd658a3c7d030f2
Diffstat (limited to 'gdb/doc/Makefile.in')
-rw-r--r-- | gdb/doc/Makefile.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/doc/Makefile.in b/gdb/doc/Makefile.in index 2673499..6588a0c 100644 --- a/gdb/doc/Makefile.in +++ b/gdb/doc/Makefile.in @@ -41,6 +41,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ SYSTEM_GDBINIT = @SYSTEM_GDBINIT@ +SYSTEM_GDBINIT_DIR = @SYSTEM_GDBINIT_DIR@ mkinstalldirs = $(SHELL) $(srcdir)/../../mkinstalldirs @@ -425,6 +426,9 @@ GDBvn.texi : version.subst if [ -n "$(SYSTEM_GDBINIT)" ]; then \ echo "@set SYSTEM_GDBINIT $(SYSTEM_GDBINIT)" >> ./GDBvn.new; \ fi + if [ -n "$(SYSTEM_GDBINIT_DIR)" ]; then \ + echo "@set SYSTEM_GDBINIT_DIR $(SYSTEM_GDBINIT_DIR)" >> ./GDBvn.new; \ + fi mv GDBvn.new GDBvn.texi version.subst: $(gdbdir)/version.in $(gdbdir)/../bfd/version.h |