* source.c (forget_cached_source_info): Clear last_source_visited.

(init_last_source_visited): Delete.
	(directory_command): Do not clear last_source_visited.  Call
	forget_cached_source_info only if required.
	(unset_substitute_path_command, set_substitute_path_command): Call
	forget_cached_source_info.
	* mi/mi-cmd-env.c (mi_cmd_env_dir): Do not call
	init_last_source_visited.
	* defs.h (init_last_source_visited): Delete declaration.
This commit is contained in:
Daniel Jacobowitz
2009-09-22 22:34:17 +00:00
parent a89caa617d
commit c4e86dd4d0
4 changed files with 18 additions and 11 deletions

View File

@@ -630,8 +630,6 @@ extern char *source_path;
extern void init_source_path (void);
extern void init_last_source_visited (void);
/* From exec.c */
/* Take over the 'find_mapped_memory' vector from exec.c. */