From 2889e661046068fe3d2ea7962a05ac05e5ba2123 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Fri, 31 Aug 2001 00:36:23 +0000 Subject: [PATCH] * symfile.c (load_command): Invalidate the overlay cache. --- gdb/ChangeLog | 4 ++++ gdb/symfile.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 68ce58acae8..49fe5c49e18 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2001-08-30 Jim Blandy + + * symfile.c (load_command): Invalidate the overlay cache. + 2001-08-30 Mark Kettenis * config/i386/xm-i386.h (HOST_BYTE_ORDER): Removed. diff --git a/gdb/symfile.c b/gdb/symfile.c index e20e6de3bb1..1bda72eb366 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -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 -- 2.30.2