diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-04-17 15:56:20 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-04-17 15:56:20 +0000 |
commit | 5b6f9393cfbab8bc012ea4adc729f7944eb726da (patch) | |
tree | 777590bbc4db355349c1590f002aa7ec5445cbfb /gdb/linux-thread-db.c | |
parent | f120985591fcde3eb530a59eb014ac372ce14e60 (diff) | |
download | gdb-5b6f9393cfbab8bc012ea4adc729f7944eb726da.tar.gz |
gdb/
New option "set debug auto-load".
* NEWS: New commands "set debug auto-load" and "show debug auto-load".
* auto-load.c (debug_auto_load, show_debug_auto_load: New.
(auto_load_safe_path_vec_update)
(filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
if DEBUG_AUTO_LOAD.
(file_is_auto_load_safe): New parameters debug_fmt and ....
Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
(source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
caller by explanatory string.
(_initialize_auto_load): Register "set debug auto-load".
* auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
and ....
* linux-thread-db.c (try_thread_db_load_from_pdir_1)
(try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
by explanatory string.
* main.c (captured_main): Likewise.
* python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
(source_section_scripts): Likewise.
gdb/doc/
New option "set debug auto-load".
* gdb.texinfo (Auto-loading): New menu item for auto-load verbose mode.
(auto-load verbose mode): New node.
Diffstat (limited to 'gdb/linux-thread-db.c')
-rw-r--r-- | gdb/linux-thread-db.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 1f6042d3db7..f78f662d435 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -870,7 +870,9 @@ try_thread_db_load_from_pdir_1 (struct objfile *obj) gdb_assert (cp != NULL); strcpy (cp + 1, LIBTHREAD_DB_SO); - if (!file_is_auto_load_safe (path)) + if (!file_is_auto_load_safe (path, _("auto-load: Loading libthread-db " + "library \"%s\" from $pdir.\n"), + path)) result = 0; else result = try_thread_db_load (path); @@ -940,7 +942,10 @@ try_thread_db_load_from_dir (const char *dir, size_t dir_len) path[dir_len] = '/'; strcpy (path + dir_len + 1, LIBTHREAD_DB_SO); - if (!file_is_auto_load_safe (path)) + if (!file_is_auto_load_safe (path, _("auto-load: Loading libthread-db " + "library \"%s\" from explicit " + "directory.\n"), + path)) result = 0; else result = try_thread_db_load (path); |