aboutsummaryrefslogtreecommitdiff
path: root/gdb/auto-load.h
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/auto-load.h
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/auto-load.h')
-rw-r--r--gdb/auto-load.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/auto-load.h b/gdb/auto-load.h
index 6b2fe75..16cad98 100644
--- a/gdb/auto-load.h
+++ b/gdb/auto-load.h
@@ -55,6 +55,7 @@ extern struct cmd_list_element **auto_load_set_cmdlist_get (void);
extern struct cmd_list_element **auto_load_show_cmdlist_get (void);
extern struct cmd_list_element **auto_load_info_cmdlist_get (void);
-extern int file_is_auto_load_safe (const char *filename);
+extern int file_is_auto_load_safe (const char *filename,
+ const char *debug_fmt, ...);
#endif /* AUTO_LOAD_H */