diff options
author | Daniel Jacobowitz <drow@false.org> | 2008-02-28 16:24:25 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2008-02-28 16:24:25 +0000 |
commit | 0d6ba1b16e08532da8a7fa2de4d867927cf3f9f6 (patch) | |
tree | df36d4a5b5266d725954219becaf8ada4b151bfa /gdb/frame.c | |
parent | e691325a9c31d84e1980c30cedaac4a3b15a7a84 (diff) | |
download | gdb-0d6ba1b16e08532da8a7fa2de4d867927cf3f9f6.zip gdb-0d6ba1b16e08532da8a7fa2de4d867927cf3f9f6.tar.gz gdb-0d6ba1b16e08532da8a7fa2de4d867927cf3f9f6.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/frame.c')
-rw-r--r-- | gdb/frame.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/frame.c b/gdb/frame.c index d487e84..ded9ae7 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -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"); } |