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

previously valid.

	* gdb.base/annota1.exp, gdb.cp/annota2.exp: Update for fewer
	frames-invalid annotations.
This commit is contained in:
Daniel Jacobowitz
2008-02-28 16:24:25 +00:00
parent e691325a9c
commit 0d6ba1b16e
5 changed files with 16 additions and 4 deletions

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");
}