diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-05-11 18:13:22 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-05-11 18:13:22 +0000 |
commit | e7dce50ad0b3c0437d3d4541bc4197cd2452baab (patch) | |
tree | 2f064034e40ee9572fc1f59a57df2c7ee130d9cc /gdb/doc/observer.texi | |
parent | 27e670ef3c91ca1f6146ef0da19df2e8fd5fb938 (diff) | |
download | gdb-e7dce50ad0b3c0437d3d4541bc4197cd2452baab.tar.gz |
gdb/
Provide $ddir substitution for --with-auto-load-safe-path.
* NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
entries.
* auto-load.c: Include observer.h.
(auto_load_safe_path_vec_update): Call substitute_path_component for
each component. New variable ddir_subst.
(auto_load_gdb_datadir_changed): New function.
(set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
AUTO_LOAD_SAFE_PATH. New comment.
(_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
* config.in: Regenerate.
* configure: Regenerate.
* configure.ac (--auto-load-safe-path): Rename
DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
GDB_DATADIR/auto-load.
* defs.h (substitute_path_component): New declaration.
* top.c: Include observer.h.
(set_gdb_datadir): New function.
(init_main): Install it for "set data-directory".
* utils.c (substitute_path_component): New function.
gdb/doc/
Provide $ddir substitution for --with-auto-load-safe-path.
* gdb.texinfo (Auto-loading): Replace /usr/local by $ddir/auto-load.
(Auto-loading safe path): Likewise. Mention the default value,
$ddir substitution, --with-auto-load-safe-path and
--without-auto-load-safe-path.
* observer.texi (gdb_datadir_changed): New.
Diffstat (limited to 'gdb/doc/observer.texi')
-rw-r--r-- | gdb/doc/observer.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/doc/observer.texi b/gdb/doc/observer.texi index 24233cbeb43..6827ed8f982 100644 --- a/gdb/doc/observer.texi +++ b/gdb/doc/observer.texi @@ -226,6 +226,10 @@ Called before a top-level prompt is displayed. @var{current_prompt} is the current top-level prompt. @end deftypefun +@deftypefun void gdb_datadir_changed (void) +Variable gdb_datadir has been set. The value may not necessarily change. +@end deftypefun + @deftypefun void test_notification (int @var{somearg}) This observer is used for internal testing. Do not use. See testsuite/gdb.gdb/observer.exp. |