diff src/input.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 57a59eae83cc
line wrap: on
line diff
--- a/src/input.cc	Fri Jan 22 12:37:03 2010 +0100
+++ b/src/input.cc	Fri Jan 22 07:30:44 2010 -0500
@@ -1011,12 +1011,17 @@
   if (nargin == 0 || nargin == 1)
     {
       unwind_protect frame;
+
       frame.add_fcn (octave_call_stack::restore_frame, 
                      octave_call_stack::current_frame ());
 
       // Skip the frame assigned to the keyboard function.
       octave_call_stack::goto_frame_relative (0);
 
+      tree_evaluator::debug_mode = true;
+
+      tree_evaluator::current_frame = octave_call_stack::current_frame ();
+
       do_keyboard (args);
     }
   else