diff src/debug.cc @ 10186:095a1e670e68

make dbstep work with keyboard function
author John W. Eaton <jwe@octave.org>
date Fri, 22 Jan 2010 07:30:44 -0500
parents cd96d29c5efa
children d4f813c3f5ed
line wrap: on
line diff
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -1075,7 +1075,7 @@
 	{
 	  Vdebugging = false;
 
-	  tree_evaluator::dbstep_flag = 0;
+          tree_evaluator::reset_debug_state ();
 	}
       else
 	print_usage ();
@@ -1097,7 +1097,9 @@
     {
       if (args.length () == 0)
 	{
-	  tree_evaluator::dbstep_flag = 0;
+	  Vdebugging = false;
+
+          tree_evaluator::reset_debug_state ();
 
 	  octave_throw_interrupt_exception ();
 	}