aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-04-17 15:56:21 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-04-17 15:56:21 +0000
commit4dc84fd1097fab1fb14a6c77a6b77003296d27eb (patch)
tree4fd4a5a7098fcd3971f63f0ab49b678d14166557 /gdb/main.c
parentbccbefd2aab863e24a122ea686cbd263041b4709 (diff)
downloadgdb-4dc84fd1097fab1fb14a6c77a6b77003296d27eb.zip
gdb-4dc84fd1097fab1fb14a6c77a6b77003296d27eb.tar.gz
gdb-4dc84fd1097fab1fb14a6c77a6b77003296d27eb.tar.bz2
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/main.c')
-rw-r--r--gdb/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 48e522e..fe41551 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -945,7 +945,10 @@ captured_main (void *data)
auto_load_local_gdbinit_pathname = gdb_realpath (local_gdbinit);
if (!inhibit_gdbinit && auto_load_local_gdbinit
- && file_is_auto_load_safe (local_gdbinit))
+ && file_is_auto_load_safe (local_gdbinit,
+ _("auto-load: Loading .gdbinit "
+ "file \"%s\".\n"),
+ local_gdbinit))
{
auto_load_local_gdbinit_loaded = 1;