GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "pt-bp.h"
Public Types | |
enum | action { set = 1, clear = 2, list = 3 } |
Private Member Functions | |
tree_breakpoint (const tree_breakpoint &) | |
void | do_decl_command (tree_decl_command &) |
tree_breakpoint & | operator= (const tree_breakpoint &) |
void | take_action (tree &tr) |
void | take_action (tree_statement &stmt) |
Private Attributes | |
action | act |
octave_value_list | bp_list |
bool | found |
int | line |
|
private |
|
private |
Definition at line 101 of file pt-bp.cc.
References tree::line(), line, and take_action().
Referenced by visit_global_command(), and visit_persistent_command().
Definition at line 137 of file pt-bp.h.
Referenced by tree_statement_list::set_breakpoint().
|
inline |
Definition at line 135 of file pt-bp.h.
Referenced by tree_statement_list::list_breakpoints().
|
private |
Definition at line 444 of file pt-bp.cc.
References act, octave_value_list::append(), bp_list, clear, tree::delete_breakpoint(), found, tree::is_breakpoint(), tree::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_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().
|
private |
Definition at line 470 of file pt-bp.cc.
References act, octave_value_list::append(), bp_list, clear, tree_statement::delete_breakpoint(), found, tree_statement::is_breakpoint(), tree_statement::line(), list, panic_impossible, and tree_statement::set_breakpoint().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 81 of file pt-bp.cc.
References tree::line(), line, and take_action().
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 147 of file pt-bp.cc.
References tree_statement_list::accept(), tree_complex_for_command::body(), found, tree::line(), line, and take_action().
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 94 of file pt-bp.cc.
References tree::line(), line, and take_action().
|
virtual |
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 51 of file pt-bp.cc.
References tree_statement_list::accept(), tree_while_command::body(), found, tree::line(), line, and take_action().
|
virtual |
|
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().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 215 of file pt-bp.cc.
References tree_if_command_list::accept(), and tree_if_command::cmd_list().
|
virtual |
Implements tree_walker.
Definition at line 224 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, tree::line(), line, and take_action().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 271 of file pt-bp.cc.
References tree_no_op_command::is_end_of_fcn_or_script(), tree::line(), line, and take_action().
|
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.
|
virtual |
Implements tree_walker.
Definition at line 162 of file pt-bp.cc.
References tree_statement_list::accept(), and octave_user_script::body().
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 314 of file pt-bp.cc.
References tree::line(), line, and take_action().
|
virtual |
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 132 of file pt-bp.cc.
References tree_statement_list::accept(), tree_simple_for_command::body(), found, tree::line(), line, and take_action().
|
virtual |
Implements tree_walker.
Definition at line 333 of file pt-bp.cc.
References tree::accept(), tree_statement::command(), tree_statement::is_command(), tree_statement::line(), line, and take_action().
|
virtual |
Implements tree_walker.
Definition at line 349 of file pt-bp.cc.
References tree_statement::accept(), octave_base_list< elt_type >::begin(), octave_base_list< elt_type >::end(), and found.
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 372 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, tree::line(), line, and take_action().
|
virtual |
Implements tree_walker.
Definition at line 395 of file pt-bp.cc.
References tree_switch_case_list::accept(), tree_switch_command::case_list(), found, tree::line(), line, and take_action().
|
virtual |
Implements tree_walker.
Definition at line 410 of file pt-bp.cc.
References tree_statement_list::accept(), tree_try_catch_command::body(), tree_try_catch_command::cleanup(), and found.
|
virtual |
Implements tree_walker.
Definition at line 427 of file pt-bp.cc.
References tree_statement_list::accept(), tree_unwind_protect_command::body(), tree_unwind_protect_command::cleanup(), and found.
|
virtual |
Implements tree_walker.
Definition at line 36 of file pt-bp.cc.
References tree_statement_list::accept(), tree_while_command::body(), found, tree::line(), line, and take_action().
|
private |
Definition at line 151 of file pt-bp.h.
Referenced by take_action().
|
private |
Definition at line 157 of file pt-bp.h.
Referenced by take_action().
|
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_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().
|
private |
Definition at line 148 of file pt-bp.h.
Referenced by do_decl_command(), visit_break_command(), visit_complex_for_command(), visit_continue_command(), visit_do_until_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().