diff options
Diffstat (limited to 'gdb/auto-load.h')
-rw-r--r-- | gdb/auto-load.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gdb/auto-load.h b/gdb/auto-load.h index 6a66622..2ddebc5 100644 --- a/gdb/auto-load.h +++ b/gdb/auto-load.h @@ -24,8 +24,18 @@ struct program_space; struct script_language { + /* The name of the language, lowercase. */ + const char *name; + + /* The suffix added to objfiles to get their auto-load script. + E.g., "-gdb.py". */ const char *suffix; + /* Returns non-zero if auto-loading scripts in this language is enabled. */ + int (*auto_load_enabled) (void); + + /* Worker routine to load the script. It has already been opened and + deemed safe to load. */ void (*source_script_for_objfile) (struct objfile *objfile, FILE *file, const char *filename); }; @@ -42,8 +52,6 @@ extern int maybe_add_script (struct auto_load_pspace_info *pspace_info, int loaded, const char *name, const char *full_path, const struct script_language *language); -extern void auto_load_objfile_script (struct objfile *objfile, - const struct script_language *language); extern void load_auto_scripts_for_objfile (struct objfile *objfile); extern int script_not_found_warning_print (struct auto_load_pspace_info *pspace_info); |