diff src/pt-eval.cc @ 10836:6abf966379de

pt-eval.cc: process breakpoints for if and switch commands
author John W. Eaton <jwe@octave.org>
date Fri, 30 Jul 2010 10:48:24 -0400
parents cb0883127251
children 65bc065bec95
line wrap: on
line diff
--- a/src/pt-eval.cc
+++ b/src/pt-eval.cc
@@ -542,6 +542,9 @@
 void
 tree_evaluator::visit_if_command (tree_if_command& cmd)
 {
+  if (debug_mode)
+    do_breakpoint (cmd.is_breakpoint ());
+
   tree_if_command_list *lst = cmd.cmd_list ();
 
   if (lst)
@@ -808,6 +811,9 @@
 void
 tree_evaluator::visit_switch_command (tree_switch_command& cmd)
 {
+  if (debug_mode)
+    do_breakpoint (cmd.is_breakpoint ());
+
   tree_expression *expr = cmd.switch_value ();
 
   if (expr)