#include "pt-bp.h"
Definition at line 35 of file pt-bp.h.
tree_breakpoint::tree_breakpoint | ( | const tree_breakpoint & | ) | [private] |
void tree_breakpoint::do_decl_command | ( | tree_decl_command & | cmd | ) | [private] |
Definition at line 101 of file pt-bp.cc.
References line, tree::line(), and take_action().
Referenced by visit_global_command(), and visit_static_command().
int tree_breakpoint::get_line | ( | void | ) | [inline] |
Definition at line 137 of file pt-bp.h.
Referenced by tree_statement_list::set_breakpoint().
octave_value_list tree_breakpoint::get_list | ( | void | ) | [inline] |
Definition at line 135 of file pt-bp.h.
Referenced by tree_statement_list::list_breakpoints().
tree_breakpoint& tree_breakpoint::operator= | ( | const tree_breakpoint & | ) | [private] |
void tree_breakpoint::take_action | ( | tree & | tr | ) | [private] |
Definition at line 450 of file pt-bp.cc.
References act, octave_value_list::append(), bp_list, clear, tree::delete_breakpoint(), found, tree::is_breakpoint(), tree::line(), line, list, panic_impossible, and tree::set_breakpoint().
Referenced by do_decl_command(), visit_break_command(), visit_complex_for_command(), visit_continue_command(), visit_do_until_command(), visit_if_command(), visit_if_command_list(), visit_no_op_command(), visit_return_command(), visit_simple_for_command(), visit_statement(), visit_switch_case_list(), visit_switch_command(), and visit_while_command().
void tree_breakpoint::take_action | ( | tree_statement & | stmt | ) | [private] |
Definition at line 476 of file pt-bp.cc.
References act, octave_value_list::append(), bp_list, clear, tree_statement::delete_breakpoint(), found, tree_statement::is_breakpoint(), line, tree_statement::line(), list, panic_impossible, and tree_statement::set_breakpoint().
void tree_breakpoint::visit_anon_fcn_handle | ( | tree_anon_fcn_handle & | ) | [virtual] |
void tree_breakpoint::visit_argument_list | ( | tree_argument_list & | ) | [virtual] |
void tree_breakpoint::visit_binary_expression | ( | tree_binary_expression & | ) | [virtual] |
void tree_breakpoint::visit_break_command | ( | tree_break_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 81 of file pt-bp.cc.
References line, tree::line(), and take_action().
void tree_breakpoint::visit_cell | ( | tree_cell & | ) | [virtual] |
void tree_breakpoint::visit_colon_expression | ( | tree_colon_expression & | ) | [virtual] |
void tree_breakpoint::visit_complex_for_command | ( | tree_complex_for_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 147 of file pt-bp.cc.
References tree_statement_list::accept(), tree_complex_for_command::body(), found, line, tree::line(), and take_action().
void tree_breakpoint::visit_constant | ( | tree_constant & | ) | [virtual] |
void tree_breakpoint::visit_continue_command | ( | tree_continue_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 94 of file pt-bp.cc.
References line, tree::line(), and take_action().
void tree_breakpoint::visit_decl_elt | ( | tree_decl_elt & | ) | [virtual] |
void tree_breakpoint::visit_decl_init_list | ( | tree_decl_init_list & | ) | [virtual] |
void tree_breakpoint::visit_do_until_command | ( | tree_do_until_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 51 of file pt-bp.cc.
References tree_statement_list::accept(), tree_while_command::body(), found, line, tree::line(), and take_action().
void tree_breakpoint::visit_fcn_handle | ( | tree_fcn_handle & | ) | [virtual] |
void tree_breakpoint::visit_function_def | ( | tree_function_def & | fdef | ) | [virtual] |
Implements tree_walker.
Definition at line 192 of file pt-bp.cc.
References octave_function::accept(), f, tree_function_def::function(), and octave_value::function_value().
void tree_breakpoint::visit_global_command | ( | tree_global_command & | cmd | ) | [virtual] |
void tree_breakpoint::visit_identifier | ( | tree_identifier & | ) | [virtual] |
void tree_breakpoint::visit_if_clause | ( | tree_if_clause & | ) | [virtual] |
void tree_breakpoint::visit_if_command | ( | tree_if_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 215 of file pt-bp.cc.
References tree_if_command_list::accept(), tree_if_command::cmd_list(), found, line, tree::line(), and take_action().
void tree_breakpoint::visit_if_command_list | ( | tree_if_command_list & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 230 of file pt-bp.cc.
References tree_statement_list::accept(), octave_base_list< elt_type >::begin(), tree_if_clause::commands(), octave_base_list< elt_type >::end(), found, line, tree::line(), and take_action().
void tree_breakpoint::visit_index_expression | ( | tree_index_expression & | ) | [virtual] |
void tree_breakpoint::visit_matrix | ( | tree_matrix & | ) | [virtual] |
void tree_breakpoint::visit_multi_assignment | ( | tree_multi_assignment & | ) | [virtual] |
void tree_breakpoint::visit_no_op_command | ( | tree_no_op_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 277 of file pt-bp.cc.
References tree_no_op_command::is_end_of_fcn_or_script(), line, tree::line(), and take_action().
void tree_breakpoint::visit_octave_user_function | ( | octave_user_function & | fcn | ) | [virtual] |
Implements tree_walker.
Definition at line 171 of file pt-bp.cc.
References tree_statement_list::accept(), and octave_user_function::body().
void tree_breakpoint::visit_octave_user_function_header | ( | octave_user_function & | ) |
Definition at line 180 of file pt-bp.cc.
References panic_impossible.
void tree_breakpoint::visit_octave_user_function_trailer | ( | octave_user_function & | ) |
Definition at line 186 of file pt-bp.cc.
References panic_impossible.
void tree_breakpoint::visit_octave_user_script | ( | octave_user_script & | fcn | ) | [virtual] |
Implements tree_walker.
Definition at line 162 of file pt-bp.cc.
References tree_statement_list::accept(), and octave_user_script::body().
void tree_breakpoint::visit_parameter_list | ( | tree_parameter_list & | ) | [virtual] |
void tree_breakpoint::visit_postfix_expression | ( | tree_postfix_expression & | ) | [virtual] |
void tree_breakpoint::visit_prefix_expression | ( | tree_prefix_expression & | ) | [virtual] |
void tree_breakpoint::visit_return_command | ( | tree_return_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 320 of file pt-bp.cc.
References line, tree::line(), and take_action().
void tree_breakpoint::visit_return_list | ( | tree_return_list & | ) | [virtual] |
void tree_breakpoint::visit_simple_assignment | ( | tree_simple_assignment & | ) | [virtual] |
void tree_breakpoint::visit_simple_for_command | ( | tree_simple_for_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 132 of file pt-bp.cc.
References tree_statement_list::accept(), tree_simple_for_command::body(), found, line, tree::line(), and take_action().
void tree_breakpoint::visit_statement | ( | tree_statement & | stmt | ) | [virtual] |
Implements tree_walker.
Definition at line 339 of file pt-bp.cc.
References tree::accept(), tree_statement::command(), tree_statement::is_command(), line, tree_statement::line(), and take_action().
void tree_breakpoint::visit_statement_list | ( | tree_statement_list & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 355 of file pt-bp.cc.
References tree_statement::accept(), octave_base_list< elt_type >::begin(), octave_base_list< elt_type >::end(), and found.
void tree_breakpoint::visit_static_command | ( | tree_static_command & | cmd | ) | [virtual] |
void tree_breakpoint::visit_switch_case | ( | tree_switch_case & | ) | [virtual] |
void tree_breakpoint::visit_switch_case_list | ( | tree_switch_case_list & | lst | ) | [virtual] |
Implements tree_walker.
Definition at line 378 of file pt-bp.cc.
References tree_statement_list::accept(), octave_base_list< elt_type >::begin(), tree_switch_case::commands(), octave_base_list< elt_type >::end(), found, line, tree::line(), and take_action().
void tree_breakpoint::visit_switch_command | ( | tree_switch_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 401 of file pt-bp.cc.
References tree_switch_case_list::accept(), tree_switch_command::case_list(), found, line, tree::line(), and take_action().
void tree_breakpoint::visit_try_catch_command | ( | tree_try_catch_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 416 of file pt-bp.cc.
References tree_statement_list::accept(), tree_try_catch_command::body(), tree_try_catch_command::cleanup(), and found.
void tree_breakpoint::visit_unwind_protect_command | ( | tree_unwind_protect_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 433 of file pt-bp.cc.
References tree_statement_list::accept(), tree_unwind_protect_command::body(), tree_unwind_protect_command::cleanup(), and found.
void tree_breakpoint::visit_while_command | ( | tree_while_command & | cmd | ) | [virtual] |
Implements tree_walker.
Definition at line 36 of file pt-bp.cc.
References tree_statement_list::accept(), tree_while_command::body(), found, line, tree::line(), and take_action().
action tree_breakpoint::act [private] |
Definition at line 151 of file pt-bp.h.
Referenced by take_action().
octave_value_list tree_breakpoint::bp_list [private] |
Definition at line 157 of file pt-bp.h.
Referenced by take_action().
bool tree_breakpoint::found [private] |
Definition at line 154 of file pt-bp.h.
Referenced by take_action(), visit_complex_for_command(), visit_do_until_command(), visit_if_command(), visit_if_command_list(), visit_simple_for_command(), visit_statement_list(), visit_switch_case_list(), visit_switch_command(), visit_try_catch_command(), visit_unwind_protect_command(), and visit_while_command().
int tree_breakpoint::line [private] |
Definition at line 148 of file pt-bp.h.
Referenced by do_decl_command(), take_action(), visit_break_command(), visit_complex_for_command(), visit_continue_command(), visit_do_until_command(), visit_if_command(), visit_if_command_list(), visit_no_op_command(), visit_return_command(), visit_simple_for_command(), visit_statement(), visit_switch_case_list(), visit_switch_command(), and visit_while_command().