# HG changeset patch # User John W. Eaton # Date 1364252051 14400 # Node ID 48fe490fd6330a1bee43ee45c1e5e5c8f2eb356d # Parent 6964e6b92fc1e330db964a57387458b733b32510 set breakpoint on if command list, not if command itself * pt-bp.cc (tree_breakpoint::visit_if_command): Only process list; don't set breakpoint on if command itself. diff -r 6964e6b92fc1 -r 48fe490fd633 libinterp/parse-tree/pt-bp.cc --- a/libinterp/parse-tree/pt-bp.cc Mon Mar 25 14:32:49 2013 -0700 +++ b/libinterp/parse-tree/pt-bp.cc Mon Mar 25 18:54:11 2013 -0400 @@ -214,16 +214,10 @@ void tree_breakpoint::visit_if_command (tree_if_command& cmd) { - if (cmd.line () >= line) - take_action (cmd); + tree_if_command_list *lst = cmd.cmd_list (); - if (! found) - { - tree_if_command_list *lst = cmd.cmd_list (); - - if (lst) - lst->accept (*this); - } + if (lst) + lst->accept (*this); } void