This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: flush overlay cache when code is re-loaded
- To: Jim Blandy <jimb at cygnus dot com>
- Subject: Re: RFA: flush overlay cache when code is re-loaded
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Fri, 24 Aug 2001 10:41:10 -0700
- CC: gdb-patches at sources dot redhat dot com
- Organization: Red Hat
- References: <20010812183746.BECE75E9DA@zwingli.cygnus.com>
Jim Blandy wrote:
>
> Michael, I think I'm the maintainer of symtab.c, but I'd appreciate it
> if you could review this.
Approved -- and sorry for the delay.
>
> 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