23 #if !defined (octave_debug_h)
24 #define octave_debug_h 1
58 static bool instance_ok (
void);
62 const intmap& lines = intmap ())
65 ? instance->do_add_breakpoint (fname, lines) : intmap ();
70 const intmap& lines = intmap ())
73 ? instance->do_remove_breakpoint (fname, lines) : 0;
81 ? instance->do_remove_all_breakpoints_in_file (fname, silent)
89 instance->do_remove_all_breakpoints ();
98 ? instance->do_get_breakpoint_list (fname_list) : fname_line_map ();
104 return instance_ok () ? instance->do_have_breakpoints () : 0;
120 const intmap&
line, intmap& retval);
122 intmap do_add_breakpoint (
const std::string& fname,
const intmap& lines);
125 const intmap& lines);
127 int do_remove_breakpoint (
const std::string&,
const intmap& lines);
130 const std::string& fname);
132 intmap do_remove_all_breakpoints_in_file (
const std::string& fname,
135 void do_remove_all_breakpoints (
void);
static void cleanup_instance(void)
bool do_have_breakpoints(void)
intmap::const_iterator const_intmap_iterator
std::map< std::string, intmap > fname_line_map
static bool have_breakpoints(void)
std::set< std::string >::iterator bp_set_iterator
std::set< std::string > bp_set
intmap::iterator intmap_iterator
std::set< std::string >::const_iterator const_bp_set_iterator
std::map< int, int > intmap
fname_line_map::iterator fname_line_map_iterator
std::string get_file_line(const std::string &fname, size_t line)
static intmap remove_all_breakpoints_in_file(const std::string &fname, bool silent=false)
fname_line_map::const_iterator const_fname_line_map_iterator
static bp_table * instance
static void remove_all_breakpoints(void)
static int remove_breakpoint(const std::string &fname="", const intmap &lines=intmap())
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)