Mercurial > octave
diff libinterp/parse-tree/pt-stmt.h @ 16530:7ca7e7d5eb91
remove breakpoints when clearing function
* pt-stmt.h, pt-stmt.cc (tree_statement_list::add_breakpoint,
tree_statement_list::remove_all_breakpoints): New functions.
* debug.cc (bp_table::do_add_breakpoint):
Call cmds->remove_all_breakpoints.
(bp_table::do_remove_all_breakpoints_in_file):
Call cmds->remove_all_breakpoints.
* ov-usr-fcn.cc (octave_user_script::~octave_user_script,
octave_user_function::~octave_user_function):
Call cmd_list->remove_all_breakpoints.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 17 Apr 2013 02:54:40 -0400 |
parents | 2fc554ffbc28 |
children | de91b1621260 |
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-stmt.h Wed Apr 17 00:57:07 2013 -0400 +++ b/libinterp/parse-tree/pt-stmt.h Wed Apr 17 02:54:40 2013 -0400 @@ -34,6 +34,7 @@ #include "base-list.h" #include "comment-list.h" +#include "debug.h" #include "symtab.h" #include "pt.h" @@ -160,6 +161,11 @@ octave_value_list list_breakpoints (void); + bp_table::intmap add_breakpoint (const std::string& file, + const bp_table::intmap& line); + + bp_table::intmap remove_all_breakpoints (const std::string& file); + tree_statement_list *dup (symbol_table::scope_id scope, symbol_table::context_id context) const;