* symfile.c (load_command): Invalidate the overlay cache.

This commit is contained in:
Jim Blandy
2001-08-31 00:36:23 +00:00
parent 56f3b7d623
commit 2889e66104
2 changed files with 8 additions and 0 deletions

View File

@@ -1154,6 +1154,10 @@ load_command (char *arg, int from_tty)
if (arg == NULL)
arg = get_exec_file (1);
target_load (arg, from_tty);
/* After re-loading the executable, we don't really know which
overlays are mapped any more. */
overlay_cache_invalid = 1;
}
/* This version of "load" should be usable for any target. Currently