1 /* GDB routines for supporting auto-loaded scripts.
3 Copyright (C) 2012 Free Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
25 struct script_language
29 void (*source_script_for_objfile) (struct objfile *objfile, FILE *file,
30 const char *filename);
33 extern int global_auto_load;
35 extern int auto_load_local_gdbinit;
36 extern char *auto_load_local_gdbinit_pathname;
37 extern int auto_load_local_gdbinit_loaded;
39 extern struct auto_load_pspace_info *
40 get_auto_load_pspace_data_for_loading (struct program_space *pspace);
41 extern int maybe_add_script (struct auto_load_pspace_info *pspace_info,
42 const char *name, const char *full_path,
43 const struct script_language *language);
44 extern void auto_load_objfile_script (struct objfile *objfile,
45 const struct script_language *language);
46 extern void load_auto_scripts_for_objfile (struct objfile *objfile);
48 script_not_found_warning_print (struct auto_load_pspace_info *pspace_info);
49 extern char auto_load_info_scripts_pattern_nl[];
50 extern void auto_load_info_scripts (char *pattern, int from_tty,
51 const struct script_language *language);
53 extern struct cmd_list_element **auto_load_set_cmdlist_get (void);
54 extern struct cmd_list_element **auto_load_show_cmdlist_get (void);
55 extern struct cmd_list_element **auto_load_info_cmdlist_get (void);
57 #endif /* AUTO_LOAD_H */