GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "debug.h"
Public Types | |
typedef fname_line_map::const_iterator | const_fname_line_map_iterator |
typedef intmap::const_iterator | const_intmap_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()) |
static fname_line_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()) |
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) |
bool | do_add_breakpoint_1 (octave_user_code *fcn, const std::string &fname, const intmap &line, intmap &retval) |
fname_line_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 bp_table * | instance = 0 |
|
private |
|
private |
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, intmap> bp_table::fname_line_map |
typedef fname_line_map::iterator bp_table::fname_line_map_iterator |
typedef std::map<int, int> bp_table::intmap |
typedef intmap::iterator bp_table::intmap_iterator |
|
inlineprivate |
Definition at line 42 of file debug.h.
Referenced by instance_ok().
Definition at line 116 of file debug.h.
Referenced by instance_ok().
|
private |
Definition at line 309 of file debug.cc.
References tree_evaluator::debug_mode, do_add_breakpoint_1(), error(), get_user_code(), have_breakpoints(), octave_function::subfunction_names(), octave_user_code::subfunctions(), and Vdebugging.
|
private |
Definition at line 279 of file debug.cc.
References tree_statement_list::add_breakpoint(), octave_user_code::body(), bp_set, and octave_function::fcn_file_name().
Referenced by do_add_breakpoint().
|
private |
Definition at line 545 of file debug.cc.
References octave_user_code::body(), bp_set, do_find_bkpt_list(), f, get_user_code(), octave_value_list::length(), tree_statement_list::list_breakpoints(), and octave_function::name().
Definition at line 516 of file debug.cc.
References bp_set, tree_evaluator::debug_mode, have_breakpoints(), remove_all_breakpoints_in_file(), and Vdebugging.
|
private |
Definition at line 477 of file debug.cc.
References tree_evaluator::debug_mode, do_remove_all_breakpoints_in_file_1(), error(), get_user_code(), have_breakpoints(), octave_user_code::subfunctions(), octave_base_value::user_code_value(), and Vdebugging.
|
private |
Definition at line 455 of file debug.cc.
References octave_user_code::body(), bp_set, octave_function::fcn_file_name(), and tree_statement_list::remove_all_breakpoints().
Referenced by do_remove_all_breakpoints_in_file().
Definition at line 403 of file debug.cc.
References tree_evaluator::debug_mode, do_remove_breakpoint_1(), error(), get_user_code(), have_breakpoints(), remove_all_breakpoints_in_file(), octave_function::subfunction_names(), octave_user_code::subfunctions(), and Vdebugging.
|
private |
Definition at line 354 of file debug.cc.
References octave_user_code::body(), bp_set, tree_statement_list::delete_breakpoint(), octave_function::fcn_file_name(), octave_value_list::length(), tree_statement_list::list_breakpoints(), and octave_link::update_breakpoint().
Referenced by do_remove_breakpoint().
|
inlinestatic |
Definition at line 94 of file debug.h.
Referenced by Fdbstatus().
Definition at line 101 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(), tree_evaluator::reset_debug_state(), and user_abort().
Definition at line 257 of file debug.cc.
References singleton_cleanup_list::add(), bp_table(), cleanup_instance(), error(), and instance.
|
inlinestatic |
Definition at line 77 of file debug.h.
Referenced by do_remove_all_breakpoints(), do_remove_breakpoint(), and out_of_date_check().
|
inlinestatic |
Definition at line 69 of file debug.h.
Referenced by Fdbclear().
|
private |
Definition at line 112 of file debug.h.
Referenced by do_add_breakpoint_1(), do_get_breakpoint_list(), do_remove_all_breakpoints(), do_remove_all_breakpoints_in_file_1(), and do_remove_breakpoint_1().
|
staticprivate |
Definition at line 114 of file debug.h.
Referenced by instance_ok().