/* Clear the table of loaded section scripts. */
static void
-clear_section_scripts (void)
+clear_section_scripts (program_space *pspace)
{
- struct program_space *pspace = current_program_space;
- struct auto_load_pspace_info *info;
-
- info = auto_load_pspace_data.get (pspace);
+ auto_load_pspace_info *info = auto_load_pspace_data.get (pspace);
if (info != NULL && info->loaded_script_files != NULL)
auto_load_pspace_data.clear (pspace);
}
if (!objfile)
{
/* OBJFILE is NULL when loading a new "main" symbol-file. */
- clear_section_scripts ();
+ clear_section_scripts (current_program_space);
return;
}
PATTERN. FROM_TTY is the usual GDB boolean for user interactivity. */
void
-auto_load_info_scripts (const char *pattern, int from_tty,
- const struct extension_language_defn *language)
+auto_load_info_scripts (program_space *pspace, const char *pattern,
+ int from_tty, const extension_language_defn *language)
{
struct ui_out *uiout = current_uiout;
- struct auto_load_pspace_info *pspace_info;
dont_repeat ();
- pspace_info = get_auto_load_pspace_data (current_program_space);
+ auto_load_pspace_info *pspace_info = get_auto_load_pspace_data (pspace);
if (pattern && *pattern)
{
static void
info_auto_load_gdb_scripts (const char *pattern, int from_tty)
{
- auto_load_info_scripts (pattern, from_tty, &extension_language_gdb);
+ auto_load_info_scripts (current_program_space, pattern, from_tty,
+ &extension_language_gdb);
}
/* Implement 'info auto-load local-gdbinit'. */
const struct extension_language_defn *);
extern void load_auto_scripts_for_objfile (struct objfile *objfile);
extern char auto_load_info_scripts_pattern_nl[];
-extern void auto_load_info_scripts (const char *pattern, int from_tty,
- const struct extension_language_defn *);
+extern void auto_load_info_scripts (program_space *pspace, const char *pattern,
+ int from_tty,
+ const extension_language_defn *);
extern struct cmd_list_element **auto_load_set_cmdlist_get (void);
extern struct cmd_list_element **auto_load_show_cmdlist_get (void);
static void
info_auto_load_guile_scripts (const char *pattern, int from_tty)
{
- auto_load_info_scripts (pattern, from_tty, &extension_language_guile);
+ auto_load_info_scripts (current_program_space, pattern, from_tty,
+ &extension_language_guile);
}
\f
void
static void
info_auto_load_python_scripts (const char *pattern, int from_tty)
{
- auto_load_info_scripts (pattern, from_tty, &extension_language_python);
+ auto_load_info_scripts (current_program_space, pattern, from_tty,
+ &extension_language_python);
}
\f
static int CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION