changeset 25185:559e4821c3f7 stable

make dbquit work again (bug #53426) * debug.cc (Fdbquit): Also set tree_evaluator::debug_mode. Throw interrupt_exception instead of calling octave_throw_interrupt_exception.
author John W. Eaton <jwe@octave.org>
date Mon, 09 Apr 2018 17:18:18 -0400
parents 1b1b29705d53
children ecc37eef11cc 9bb58f9580f4
files libinterp/corefcn/debug.cc
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/debug.cc	Mon Apr 09 11:33:21 2018 -0700
+++ b/libinterp/corefcn/debug.cc	Mon Apr 09 17:18:18 2018 -0400
@@ -1160,11 +1160,14 @@
   if (args.length () != 0)
     print_usage ();
 
+  // FIXME: there are too many debug mode flags!
+
   Vdebugging = false;
 
   octave::tree_evaluator::reset_debug_state ();
+  octave::tree_evaluator::debug_mode = false;
 
-  octave_throw_interrupt_exception ();
+  throw octave::interrupt_exception ();
 
   return ovl ();
 }