This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RFA: flush overlay cache when code is re-loaded



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]