* symfile.c (load_command): Invalidate the overlay cache.
[deliverable/binutils-gdb.git] / gdb / symfile.c
index e20e6de3bb1c953cee81e15ed0a06e389443a664..1bda72eb36647077a89be687598235fa6622595e 100644 (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
This page took 0.024265 seconds and 4 git commands to generate.