changeset 29847:c517a55a14ad stable

avoid crash with dbquit when executing command in terminal from gui (bug #60813) * pt-eval.cc (tree_evaluator::repl): Also catch quit_debug_exception.
author John W. Eaton <jwe@octave.org>
date Fri, 02 Jul 2021 09:41:09 -0400
parents 78cb255c78a4
children 449599fdbad8 8e898dc7e7d3
files libinterp/parse-tree/pt-eval.cc
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-eval.cc	Fri Jul 02 09:38:48 2021 -0400
+++ b/libinterp/parse-tree/pt-eval.cc	Fri Jul 02 09:41:09 2021 -0400
@@ -576,6 +576,12 @@
                 break;
               }
           }
+        catch (const quit_debug_exception&)
+          {
+            m_interpreter.recover_from_exception ();
+
+            // FIXME: Does anything else need to happen here?
+          }
         catch (const std::bad_alloc&)
           {
             m_interpreter.recover_from_exception ();