This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
RFA: flush overlay cache when code is re-loaded
- To: Michael Snyder <msnyder at cygnus dot com>
- Subject: RFA: flush overlay cache when code is re-loaded
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: Sun, 12 Aug 2001 13:37:46 -0500 (EST)
- Cc: gdb-patches at sources dot redhat dot com
Michael, I think I'm the maintainer of symtab.c, but I'd appreciate it
if you could review this.
2001-08-12 Jim Blandy <jimb@redhat.com>
* symfile.c (load_command): Invalidate the overlay cache.
Index: gdb/symfile.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/symfile.c,v
retrieving revision 1.237
diff -c -r1.237 symfile.c
*** gdb/symfile.c 2001/06/14 21:03:18 1.237
--- gdb/symfile.c 2001/08/12 18:00:24
***************
*** 1154,1159 ****
--- 1154,1163 ----
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