GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "debug.h"
Public Types | |
typedef fname_bp_map::const_iterator | const_fname_bp_map_iterator |
typedef fname_line_map::const_iterator | const_fname_line_map_iterator |
typedef intmap::const_iterator | const_intmap_iterator |
typedef std::map< std::string, std::list< bp_type > > | fname_bp_map |
typedef fname_bp_map::iterator | fname_bp_map_iterator |
typedef std::map< std::string, intmap > | fname_line_map |
typedef fname_line_map::iterator | fname_line_map_iterator |
typedef std::map< int, int > | intmap |
typedef intmap::iterator | intmap_iterator |
Static Public Member Functions | |
static intmap | add_breakpoint (const std::string &fname="", const intmap &lines=intmap(), const std::string &condition=bp_empty_string) |
static bool | condition_valid (const std::string &cond) |
static void | dbclear_all_signals (void) |
static void | dbstop_process_map_args (const octave_map &mv) |
static bool | debug_on_caught (const std::string &ID) |
static bool | debug_on_err (const std::string &ID) |
static bool | debug_on_warn (const std::string &ID) |
static fname_bp_map | get_breakpoint_list (const octave_value_list &fname_list) |
static bool | have_breakpoints (void) |
static bool | instance_ok (void) |
static void | remove_all_breakpoints (void) |
static intmap | remove_all_breakpoints_in_file (const std::string &fname, bool silent=false) |
static int | remove_breakpoint (const std::string &fname="", const intmap &lines=intmap()) |
static octave_map | stop_on_err_warn_status (bool toScreen) |
Private Types | |
typedef std::set< std::string > ::iterator | bp_set_iterator |
typedef std::set< std::string > ::const_iterator | const_bp_set_iterator |
Private Member Functions | |
bp_table (void) | |
~bp_table (void) | |
intmap | do_add_breakpoint (const std::string &fname, const intmap &lines, const std::string &condition) |
bool | do_add_breakpoint_1 (octave_user_code *fcn, const std::string &fname, const intmap &line, const std::string &condition, intmap &retval) |
fname_bp_map | do_get_breakpoint_list (const octave_value_list &fname_list) |
bool | do_have_breakpoints (void) |
void | do_remove_all_breakpoints (void) |
intmap | do_remove_all_breakpoints_in_file (const std::string &fname, bool silent) |
intmap | do_remove_all_breakpoints_in_file_1 (octave_user_code *fcn, const std::string &fname) |
int | do_remove_breakpoint (const std::string &, const intmap &lines) |
int | do_remove_breakpoint_1 (octave_user_code *fcn, const std::string &, const intmap &lines) |
Static Private Member Functions | |
static void | cleanup_instance (void) |
Private Attributes | |
std::set< std::string > | bp_set |
Static Private Attributes | |
static std::set< std::string > | caught_that_stop |
static std::set< std::string > | errors_that_stop |
static bp_table * | instance = 0 |
static std::set< std::string > | warnings_that_stop |
Friends | |
void | parse_dbfunction_params (const char *, const octave_value_list &, std::string &, bp_table::intmap &, std::string &) |
|
private |
|
private |
typedef fname_bp_map::const_iterator bp_table::const_fname_bp_map_iterator |
typedef fname_line_map::const_iterator bp_table::const_fname_line_map_iterator |
typedef intmap::const_iterator bp_table::const_intmap_iterator |
typedef std::map<std::string, std::list<bp_type> > bp_table::fname_bp_map |
typedef fname_bp_map::iterator bp_table::fname_bp_map_iterator |
typedef std::map<std::string, intmap> bp_table::fname_line_map |
typedef fname_line_map::iterator bp_table::fname_line_map_iterator |
typedef intmap::iterator bp_table::intmap_iterator |
|
inlineprivate |
Definition at line 53 of file debug.h.
Referenced by instance_ok().
|
inlinestatic |
Definition at line 77 of file debug.h.
References fname.
Referenced by file_editor_tab::add_breakpoint_callback().
|
inlinestaticprivate |
Definition at line 174 of file debug.h.
Referenced by instance_ok().
|
static |
Definition at line 622 of file debug.cc.
References error(), tree_statement::expression(), octave::base_list< elt_type >::front(), tree_expression::is_assignment_expression(), tree_statement::is_expression(), octave::base_list< elt_type >::length(), octave::base_parser::reset(), octave::parser::run(), and octave::base_parser::stmt_list.
Referenced by do_add_breakpoint(), and file_editor_tab::handle_context_menu_break_condition().
|
static |
Definition at line 474 of file debug.cc.
References Vdebug_on_caught, Vdebug_on_error, octave::Vdebug_on_interrupt, and Vdebug_on_warning.
|
static |
Definition at line 491 of file debug.cc.
References caught_that_stop, octave_value_list::cell_value(), octave_map::contents(), error(), errors_that_stop, Cell::index(), Array< T >::is_empty(), octave_map::isfield(), Array< T >::numel(), V, Vdebug_on_caught, Vdebug_on_error, octave::Vdebug_on_interrupt, Vdebug_on_warning, W, and warnings_that_stop.
|
inlinestatic |
Definition at line 133 of file debug.h.
Referenced by maybe_enter_debugger().
|
inlinestatic |
Definition at line 126 of file debug.h.
Referenced by maybe_enter_debugger().
|
inlinestatic |
Definition at line 140 of file debug.h.
Referenced by warning_1().
|
private |
Definition at line 721 of file debug.cc.
References condition_valid(), octave::tree_evaluator::debug_mode, do_add_breakpoint_1(), error(), find_fcn_by_line(), get_user_code(), have_breakpoints(), m, retval, and Vdebugging.
|
private |
Definition at line 580 of file debug.cc.
References tree_statement_list::add_breakpoint(), octave_user_code::body(), bp_set, octave_function::fcn_file_name(), file, found, s, string, and Vfilemarker.
Referenced by do_add_breakpoint().
|
private |
Definition at line 929 of file debug.cc.
References octave_user_code::body(), bp_set, tree_statement_list::breakpoints_and_conds(), do_find_bkpt_list(), octave_value_list::empty(), f, get_user_code(), octave_function::name(), retval, octave_function::subfunction_names(), octave_user_code::subfunctions(), octave_base_value::user_code_value(), and Vfilemarker.
|
private |
Definition at line 896 of file debug.cc.
References bp_set, octave::tree_evaluator::debug_mode, have_breakpoints(), remove_all_breakpoints_in_file(), and Vdebugging.
|
private |
Definition at line 863 of file debug.cc.
References octave_user_code::body(), bp_set, octave::tree_evaluator::debug_mode, error(), octave_function::fcn_file_name(), file, get_user_code(), have_breakpoints(), tree_statement_list::remove_all_breakpoints(), retval, string, and Vdebugging.
|
private |
|
private |
Definition at line 812 of file debug.cc.
References octave::tree_evaluator::debug_mode, do_remove_breakpoint_1(), error(), get_user_code(), have_breakpoints(), remove_all_breakpoints_in_file(), retval, octave_function::subfunction_names(), octave_user_code::subfunctions(), octave_base_value::user_code_value(), and Vdebugging.
|
private |
Definition at line 763 of file debug.cc.
References octave_user_code::body(), bp_set, tree_statement_list::delete_breakpoint(), octave_value_list::empty(), octave_function::fcn_file_name(), file, octave_value_list::length(), tree_statement_list::list_breakpoints(), p, retval, string, and octave_link::update_breakpoint().
Referenced by do_remove_breakpoint().
|
inlinestatic |
|
inlinestatic |
Definition at line 119 of file debug.h.
Referenced by do_add_breakpoint(), do_remove_all_breakpoints(), do_remove_all_breakpoints_in_file(), do_remove_breakpoint(), tree_jit::enabled(), octave::tree_evaluator::reset_debug_state(), and octave::user_abort().
|
static |
Definition at line 456 of file debug.cc.
References singleton_cleanup_list::add(), bp_table(), cleanup_instance(), error(), and instance.
|
inlinestatic |
|
inlinestatic |
Definition at line 94 of file debug.h.
Referenced by do_remove_all_breakpoints(), do_remove_breakpoint(), out_of_date_check(), and file_editor_tab::remove_all_breakpoints_callback().
|
inlinestatic |
Definition at line 86 of file debug.h.
References fname.
Referenced by file_editor_tab::remove_breakpoint_callback().
|
static |
|
friend |
|
private |
Definition at line 163 of file debug.h.
Referenced by do_add_breakpoint_1(), do_get_breakpoint_list(), do_remove_all_breakpoints(), do_remove_all_breakpoints_in_file(), and do_remove_breakpoint_1().
|
staticprivate |
Definition at line 169 of file debug.h.
Referenced by dbstop_process_map_args(), and parse_dbfunction_params().
|
staticprivate |
Definition at line 168 of file debug.h.
Referenced by dbstop_process_map_args(), and parse_dbfunction_params().
|
staticprivate |
Definition at line 172 of file debug.h.
Referenced by instance_ok().
|
staticprivate |
Definition at line 170 of file debug.h.
Referenced by dbstop_process_map_args(), and parse_dbfunction_params().