changeset 33064:6fa52e36a8f2

protect m_debug_frame to improve recursive debugging (bug #65330) * pt-eval.cc (tree_evaluator::enter_debugger): Protect m_debug_frame.
author John W. Eaton <jwe@octave.org>
date Wed, 21 Feb 2024 00:59:32 -0500
parents d9ff240f1339
children ca78dc62d65f 51fdc7b36abd
files libinterp/parse-tree/pt-eval.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.cc	Tue Feb 20 14:02:11 2024 -0800
+++ b/libinterp/parse-tree/pt-eval.cc	Wed Feb 21 00:59:32 2024 -0500
@@ -1417,6 +1417,8 @@
 
   // Go up to the nearest user code frame.
 
+  frame.protect_var (m_debug_frame);
+
   m_debug_frame = m_call_stack.dbupdown (0);
 
   // FIXME: probably we just want to print one line, not the