Mercurial > octave
diff libgui/src/main-window.cc @ 19379:c1ce43276b86 gui-release
avoid printing debug location in cmd window when using GUI to step
* pt-eval.cc, pt-eval.h (tree_evaluator::quiet_breakpoint_flag):
New member variable.
* debug.cc (Fdb_next_breakpoint_quiet): New function.
* main-window.cc (main_window::execute_debug_callback): Call
Fdb_next_breakpoint_quiet prior to Fdbstep and Fdbcont.
* input.cc, input.h (get_debug_input): Don't print debug location if
tree_evaluator::quiet_breakpoint_flag is true. Reset it after checking.
* lex.ll (octave_lexer::fill_flex_buffer,
octave_push_lexer::fill_flex_buffer): Don't abort if input_buf is empty.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 04 Dec 2014 16:06:31 -0500 |
parents | c6615ca0a11d |
children | 5db5619fe54e ed0df431631b |
line wrap: on
line diff
--- a/libgui/src/main-window.cc Thu Dec 04 15:56:49 2014 -0500 +++ b/libgui/src/main-window.cc Thu Dec 04 16:06:31 2014 -0500 @@ -2198,13 +2198,22 @@ _dbg_queue_mutex.unlock (); if (debug == "step") - Fdbstep (); + { + Fdb_next_breakpoint_quiet (); + Fdbstep (); + } else if (debug == "cont") - Fdbcont (); + { + Fdb_next_breakpoint_quiet (); + Fdbcont (); + } else if (debug == "quit") Fdbquit (); else - Fdbstep (ovl (debug.toStdString ())); + { + Fdb_next_breakpoint_quiet (); + Fdbstep (ovl (debug.toStdString ())); + } command_editor::interrupt (true); }