GDB (API)
/home/stan/gdb/src/gdb/auto-load.h
Go to the documentation of this file.
00001 /* GDB routines for supporting auto-loaded scripts.
00002 
00003    Copyright (C) 2012-2013 Free Software Foundation, Inc.
00004 
00005    This file is part of GDB.
00006 
00007    This program is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as published by
00009    the Free Software Foundation; either version 3 of the License, or
00010    (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013    but WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015    GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00019 
00020 #ifndef AUTO_LOAD_H
00021 #define AUTO_LOAD_H 1
00022 
00023 struct program_space;
00024 
00025 struct script_language
00026 {
00027   const char *suffix;
00028 
00029   void (*source_script_for_objfile) (struct objfile *objfile, FILE *file,
00030                                      const char *filename);
00031 };
00032 
00033 extern int global_auto_load;
00034 
00035 extern int auto_load_local_gdbinit;
00036 extern char *auto_load_local_gdbinit_pathname;
00037 extern int auto_load_local_gdbinit_loaded;
00038 
00039 extern struct auto_load_pspace_info *
00040   get_auto_load_pspace_data_for_loading (struct program_space *pspace);
00041 extern int maybe_add_script (struct auto_load_pspace_info *pspace_info,
00042                              int loaded, const char *name,
00043                              const char *full_path,
00044                              const struct script_language *language);
00045 extern void auto_load_objfile_script (struct objfile *objfile,
00046                                       const struct script_language *language);
00047 extern void load_auto_scripts_for_objfile (struct objfile *objfile);
00048 extern int
00049   script_not_found_warning_print (struct auto_load_pspace_info *pspace_info);
00050 extern char auto_load_info_scripts_pattern_nl[];
00051 extern void auto_load_info_scripts (char *pattern, int from_tty,
00052                                     const struct script_language *language);
00053 
00054 extern struct cmd_list_element **auto_load_set_cmdlist_get (void);
00055 extern struct cmd_list_element **auto_load_show_cmdlist_get (void);
00056 extern struct cmd_list_element **auto_load_info_cmdlist_get (void);
00057 
00058 extern int file_is_auto_load_safe (const char *filename,
00059                                    const char *debug_fmt, ...);
00060 
00061 #endif /* AUTO_LOAD_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines