Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
16529:faccc20d5f39 | 16530:7ca7e7d5eb91 |
---|---|
32 | 32 |
33 #include <deque> | 33 #include <deque> |
34 | 34 |
35 #include "base-list.h" | 35 #include "base-list.h" |
36 #include "comment-list.h" | 36 #include "comment-list.h" |
37 #include "debug.h" | |
37 #include "symtab.h" | 38 #include "symtab.h" |
38 #include "pt.h" | 39 #include "pt.h" |
39 | 40 |
40 // A statement is either a command to execute or an expression to | 41 // A statement is either a command to execute or an expression to |
41 // evaluate. | 42 // evaluate. |
158 | 159 |
159 void delete_breakpoint (int line); | 160 void delete_breakpoint (int line); |
160 | 161 |
161 octave_value_list list_breakpoints (void); | 162 octave_value_list list_breakpoints (void); |
162 | 163 |
164 bp_table::intmap add_breakpoint (const std::string& file, | |
165 const bp_table::intmap& line); | |
166 | |
167 bp_table::intmap remove_all_breakpoints (const std::string& file); | |
168 | |
163 tree_statement_list *dup (symbol_table::scope_id scope, | 169 tree_statement_list *dup (symbol_table::scope_id scope, |
164 symbol_table::context_id context) const; | 170 symbol_table::context_id context) const; |
165 | 171 |
166 void accept (tree_walker& tw); | 172 void accept (tree_walker& tw); |
167 | 173 |