GNU Octave
4.2.1
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_cond_list |
octave_value_list | bp_list |
std::string | condition |
bool | found |
int | line |
|
inline |
|
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().
|
inline |
Definition at line 141 of file pt-bp.h.
Referenced by tree_statement_list::breakpoints_and_conds().
|
inline |
Definition at line 143 of file pt-bp.h.
References found.
Referenced by tree_statement_list::set_breakpoint().
|
inline |
Definition at line 140 of file pt-bp.h.
Referenced by tree_statement_list::breakpoints_and_conds(), and tree_statement_list::list_breakpoints().
|
private |
|
inline |
|
private |
Definition at line 453 of file pt-bp.cc.
References act, octave_value_list::append(), tree::bp_cond(), bp_cond_list, bp_list, clear, condition, tree::delete_breakpoint(), found, tree::is_breakpoint(), tree::line(), list, panic_impossible, set, 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 482 of file pt-bp.cc.
References act, octave_value_list::append(), tree_statement::bp_cond(), bp_cond_list, bp_list, clear, condition, tree_statement::delete_breakpoint(), found, tree_statement::is_breakpoint(), tree_statement::line(), list, panic_impossible, set, 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 |
|
inlinevirtualinherited |
Definition at line 269 of file pt-walk.h.
Referenced by tree_classdef::accept().
|
inlinevirtualinherited |
Definition at line 221 of file pt-walk.h.
Referenced by tree_classdef_attribute::accept().
|
inlinevirtualinherited |
Definition at line 224 of file pt-walk.h.
Referenced by tree_classdef_attribute_list::accept().
|
inlinevirtualinherited |
|
inlinevirtualinherited |
Definition at line 257 of file pt-walk.h.
Referenced by tree_classdef_enum::accept().
|
inlinevirtualinherited |
Definition at line 263 of file pt-walk.h.
Referenced by tree_classdef_enum_block::accept().
|
inlinevirtualinherited |
Definition at line 260 of file pt-walk.h.
Referenced by tree_classdef_enum_list::accept().
|
inlinevirtualinherited |
Definition at line 248 of file pt-walk.h.
Referenced by tree_classdef_event::accept().
|
inlinevirtualinherited |
Definition at line 254 of file pt-walk.h.
Referenced by tree_classdef_events_block::accept().
|
inlinevirtualinherited |
Definition at line 251 of file pt-walk.h.
Referenced by tree_classdef_events_list::accept().
|
inlinevirtualinherited |
Definition at line 245 of file pt-walk.h.
Referenced by tree_classdef_methods_block::accept().
|
inlinevirtualinherited |
Definition at line 242 of file pt-walk.h.
Referenced by tree_classdef_methods_list::accept().
|
inlinevirtualinherited |
Definition at line 239 of file pt-walk.h.
Referenced by tree_classdef_properties_block::accept().
|
inlinevirtualinherited |
Definition at line 233 of file pt-walk.h.
Referenced by tree_classdef_property::accept().
|
inlinevirtualinherited |
Definition at line 236 of file pt-walk.h.
Referenced by tree_classdef_property_list::accept().
|
inlinevirtualinherited |
Definition at line 227 of file pt-walk.h.
Referenced by tree_classdef_superclass::accept().
|
inlinevirtualinherited |
Definition at line 230 of file pt-walk.h.
Referenced by tree_classdef_superclass_list::accept().
|
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 |
|
virtual |
Implements tree_walker.
Definition at line 192 of file pt-bp.cc.
References octave_function::accept(), f, fcn, 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, p, t, 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 320 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 339 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 358 of file pt-bp.cc.
References tree_statement::accept(), octave::base_list< elt_type >::begin(), octave::base_list< elt_type >::end(), found, and p.
|
virtual |
|
virtual |
Implements tree_walker.
Definition at line 381 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, p, t, and take_action().
|
virtual |
Implements tree_walker.
Definition at line 404 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 419 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 436 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 157 of file pt-bp.h.
Referenced by take_action().
|
private |
Definition at line 169 of file pt-bp.h.
Referenced by take_action().
|
private |
Definition at line 166 of file pt-bp.h.
Referenced by take_action().
|
private |
Definition at line 160 of file pt-bp.h.
Referenced by take_action().
|
private |
Definition at line 163 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 154 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().