* frame.c (reinit_frame_cache): Only annotate if frames were

previously valid.
This commit is contained in:
Joel Brobecker
2008-03-04 20:05:27 +00:00
parent acf19f081c
commit 24b984aeed
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2008-03-04 Daniel Jacobowitz <dan@codesourcery.com>
* frame.c (reinit_frame_cache): Only annotate if frames were
previously valid.
2008-03-04 Greg Law <glaw@undo-software.com>
* regcache.c (registers_changed): Call reinit_frame_cache.

View File

@@ -1079,9 +1079,11 @@ reinit_frame_cache (void)
obstack_free (&frame_cache_obstack, 0);
obstack_init (&frame_cache_obstack);
if (current_frame != NULL)
annotate_frames_invalid ();
current_frame = NULL; /* Invalidate cache */
select_frame (NULL);
annotate_frames_invalid ();
if (frame_debug)
fprintf_unfiltered (gdb_stdlog, "{ reinit_frame_cache () }\n");
}