RFA: flush overlay cache when code is re-loaded
Michael Snyder
msnyder@cygnus.com
Fri Aug 24 10:41:00 GMT 2001
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
More information about the Gdb-patches
mailing list