diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2014-11-30 20:25:48 +0100 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2014-11-30 20:25:48 +0100 |
commit | f10c5b19e0d3f34cf36272bd9f038c19e6873275 (patch) | |
tree | 141bc24c401797017946460ebb50f7d3165ea75f /gdb/doc | |
parent | 413b59aecb4ab6b8a552d3b93a9dd7e981ab3c10 (diff) | |
download | gdb-f10c5b19e0d3f34cf36272bd9f038c19e6873275.zip gdb-f10c5b19e0d3f34cf36272bd9f038c19e6873275.tar.gz gdb-f10c5b19e0d3f34cf36272bd9f038c19e6873275.tar.bz2 |
Add add-auto-load-scripts-directory.
There is already "add-auto-load-safe-path" which works
like "set auto-load safe-path" but in append mode.
There was missing an append equivalent for "set auto-load scripts-directory".
ABRT has directory /var/cache/abrt-di/ as an alternative one
to /usr/lib/debug/ . Therefore ABRT needs to use -iex parameters to add this
/var/cache/abrt-di/ directory as a first-class debuginfo directory.
Using absolute "set auto-load scripts-directory" would hard-code the path
possibly overriding local system directory additions; besides it would not be
nice anyway.
gdb/ChangeLog
2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
Add add-auto-load-scripts-directory.
* NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
* auto-load.c (add_auto_load_dir): New function.
(_initialize_auto_load): Install it.
gdb/doc/ChangeLog
2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com>
Add add-auto-load-scripts-directory.
* gdb.texinfo (Auto-loading): Add add-auto-load-scripts-directory link.
(objfile-gdbdotext file): Add add-auto-load-scripts-directory.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index fcc18eb..3b27128 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,5 +1,11 @@ 2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com> + Add add-auto-load-scripts-directory. + * gdb.texinfo (Auto-loading): Add add-auto-load-scripts-directory link. + (objfile-gdbdotext file): Add add-auto-load-scripts-directory. + +2014-11-30 Jan Kratochvil <jan.kratochvil@redhat.com> + * gdb.texinfo (Auto-loading safe path): Fix add-auto-load-safe-path description typo. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index c475686..670c369 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -22414,6 +22414,8 @@ These are @value{GDBN} control commands for the auto-loading: @tab Control for @value{GDBN} auto-loaded scripts location. @item @xref{show auto-load scripts-directory}. @tab Show @value{GDBN} auto-loaded scripts location. +@item @xref{add-auto-load-scripts-directory}. +@tab Add directory for auto-loaded scripts location list. @item @xref{set auto-load local-gdbinit}. @tab Control for init file in the current directory. @item @xref{show auto-load local-gdbinit}. @@ -23713,6 +23715,12 @@ to the @env{PATH} environment variable. @kindex show auto-load scripts-directory @item show auto-load scripts-directory Show @value{GDBN} auto-loaded scripts location. + +@anchor{add-auto-load-scripts-directory} +@kindex add-auto-load-scripts-directory +@item add-auto-load-scripts-directory @r{[}@var{directories}@dots{}@r{]} +Add an entry (or list of entries) to the list of auto-loaded scripts locations. +Multiple entries may be delimited by the host platform path separator in use. @end table @value{GDBN} does not track which files it has already auto-loaded this way. |