From c4e86dd4d087248e379b26bfdde8d6e3121a4bd9 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 22 Sep 2009 22:34:17 +0000 Subject: * 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. --- gdb/mi/mi-cmd-env.c | 1 - 1 file changed, 1 deletion(-) (limited to 'gdb/mi') diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c index cbc9bdb..9f7cfc2 100644 --- a/gdb/mi/mi-cmd-env.c +++ b/gdb/mi/mi-cmd-env.c @@ -232,7 +232,6 @@ mi_cmd_env_dir (char *command, char **argv, int argc) for (i = argc - 1; i >= 0; --i) env_mod_path (argv[i], &source_path); - init_last_source_visited (); ui_out_field_string (uiout, "source-path", source_path); forget_cached_source_info (); -- cgit v1.1