# HG changeset patch # User John W. Eaton # Date 1280501304 14400 # Node ID 6abf966379dec3ad4180810e3adacd17d56cbbf5 # Parent 4bbd6f75f173952667d2f6c15feaab014dffdbd0 pt-eval.cc: process breakpoints for if and switch commands diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2010-07-30 John W. Eaton + + * 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 * gl-render.cc: Transpose markers '^' and 'v'. diff --git a/src/pt-eval.cc b/src/pt-eval.cc --- 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)