diff src/toplev.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 0522a65bcd56
children 56f7734f5448
line wrap: on
line diff
--- a/src/toplev.cc
+++ b/src/toplev.cc
@@ -556,6 +556,9 @@
 
 	  reset_parser ();
 
+          if (symbol_table::at_top_level ())
+            tree_evaluator::reset_debug_state ();
+
 	  // Do this with an unwind-protect cleanup function so that
 	  // the forced variables will be unmarked in the event of an
 	  // interrupt.