diff src/pt-eval.cc @ 10839:65bc065bec95

still more debugger fixes
author John W. Eaton <jwe@octave.org>
date Fri, 30 Jul 2010 18:59:31 -0400
parents 6abf966379de
children 89f4d7e294cc
line wrap: on
line diff
--- a/src/pt-eval.cc
+++ b/src/pt-eval.cc
@@ -684,7 +684,11 @@
     {
       if (in_fcn_or_script_body)
         {
-          octave_call_stack::set_statement (&stmt);
+          // Skip commands issued at a debug> prompt to avoid disturbing
+          // the state of the program we are debugging.
+
+          if (! Vdebugging)
+            octave_call_stack::set_statement (&stmt);
 
           if (Vecho_executing_commands & ECHO_FUNCTIONS)
             stmt.echo_code ();