Mercurial > octave
diff libgui/src/m-editor/file-editor-tab.h @ 27008:e93b8887fedf
remove additionally added breakpoint when stepping into a file (bug #44728)
* file-editor-tab.cc (file_editor_tab): initialize new struct with info on
breakpoints;
(run_file): before adding breakpoint at very first line, store position
of already existing first breakpoint and set flag to remove next
breakpoint reached;
(add_breakpoint_callback): if remove_next in structure is set, store
real line of the new breakpoint and reset remove_next flag;
(insert_debugger_pointer) if the current line number is the same as
a possible line number where a breakpoint has to be removed and there
wasn't a breakpoint berfore adding it, remove this breakpoint
* file-editor-tab.h: new structure for storing all required information
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Sat, 30 Mar 2019 16:39:17 +0100 |
parents | 9ec36417c262 |
children | 1bdfd2b523c9 |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.h Fri Mar 29 21:01:43 2019 -0700 +++ b/libgui/src/m-editor/file-editor-tab.h Sat Mar 30 16:39:17 2019 +0100 @@ -321,6 +321,13 @@ bool _lines_changed; bool _highlight_all_occurrences; int m_bp_restore_count; + + struct + { + bool remove_next; + int remove_line; + int do_not_remove_line; + } m_breakpoint_info; }; }