# HG changeset patch # User Ryan Rusaw # Date 1264739133 21600 # Node ID 6577f5ccdc883f30e3c1b3d84a0f07a79e94d8c1 # Parent ce94aaa71a4f1ec8c962dc598319d7fe764efaab * pt-eval.cc (tree_evaluator::do_breakpoint): Call do_keyboard_impl insteadof do_keyboard. (tree_evaluator: do_keyboard): Set the default implementation to call ::do_keyboard. * pt-eval.h (tree_evaluator): Added virtual do_keyboard method, so thatsubclasses can override control flow in debug mode. diff -r ce94aaa71a4f -r 6577f5ccdc88 src/ChangeLog --- a/src/ChangeLog Thu Jan 28 20:59:31 2010 -0500 +++ b/src/ChangeLog Thu Jan 28 22:25:33 2010 -0600 @@ -4,6 +4,16 @@ process creation, simplify. (cleanup_iprocstream): Remove. +2010-01-27 Ryan Rusaw + + * pt-eval.cc (tree_evaluator::do_breakpoint): Call do_keyboard_impl + instead of do_keyboard. + (tree_evaluator: do_keyboard): Set the default implementation to + call ::do_keyboard. + + * pt-eval.h (tree_evaluator): Added virtual do_keyboard method, + so that subclasses can override control flow in debug mode. + 2010-01-27 Jaroslav Hajek * pt-eval.cc (do_unwind_protect_cleanup_code): Save diff -r ce94aaa71a4f -r 6577f5ccdc88 src/pt-eval.cc --- a/src/pt-eval.cc Thu Jan 28 20:59:31 2010 -0500 +++ b/src/pt-eval.cc Thu Jan 28 22:25:33 2010 -0600 @@ -1155,6 +1155,13 @@ if (break_on_this_statement) do_keyboard (); + +} + +octave_value +tree_evaluator::do_keyboard (const octave_value_list& args) const +{ + return ::do_keyboard (args); } DEFUN (silent_functions, args, nargout, diff -r ce94aaa71a4f -r 6577f5ccdc88 src/pt-eval.h --- a/src/pt-eval.h Thu Jan 28 20:59:31 2010 -0500 +++ b/src/pt-eval.h Thu Jan 28 22:25:33 2010 -0600 @@ -163,6 +163,10 @@ void do_breakpoint (bool is_breakpoint, bool is_end_of_fcn_or_script = false) const; + // args + virtual octave_value do_keyboard ( + const octave_value_list& args = octave_value_list ()) const; + // No copying! tree_evaluator (const tree_evaluator&);