changeset 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 4bbd6f75f173
children 6ea0cf31667d
files src/ChangeLog src/pt-eval.cc
diffstat 2 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Thu Jul 29 20:02:36 2010 -0400
+++ b/src/ChangeLog	Fri Jul 30 10:48:24 2010 -0400
@@ -1,3 +1,9 @@
+2010-07-30  John W. Eaton  <jwe@octave.org>
+
+	* pt-eval.cc (tree_evaluator::visit_if_command,
+	tree_evaluator::visit_switch_command): Also process breakpoints
+	for the command (bug #30490).
+
 2010-07-29  Ben Abbott <bpabbott@mac.com>
 
 	* gl-render.cc: Transpose markers '^' and 'v'.
--- a/src/pt-eval.cc	Thu Jul 29 20:02:36 2010 -0400
+++ b/src/pt-eval.cc	Fri Jul 30 10:48:24 2010 -0400
@@ -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)