From a63fe09438deba286464ac79685587890ea8ae39 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Wed, 15 Feb 2023 09:43:35 +0100 Subject: [PATCH] fixup --- gdb/frame.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/gdb/frame.c b/gdb/frame.c index 69730979703..6629f444afe 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -2112,13 +2112,9 @@ reinit_frame_cache (void) dealloc functions will not be called when emptying the frash stash. Call frame_info_del manually in that case. */ frame_info *current_frame = sentinel_frame->prev; - if (current_frame != nullptr) - { - gdb_assert (current_frame->this_id.p != frame_id_status::COMPUTING); - - if (current_frame->this_id.p == frame_id_status::NOT_COMPUTED) - frame_info_del (current_frame); - } + if (current_frame != nullptr + && current_frame->this_id.p == frame_id_status::NOT_COMPUTED) + frame_info_del (current_frame); sentinel_frame = nullptr; } base-commit: b6daa77d0d91216266bccbe182cc7dc689591692 -- 2.35.3