diff src/pt-jump.cc @ 3770:bf6116ca10eb

[project @ 2001-02-02 02:21:40 by jwe]
author jwe
date Fri, 02 Feb 2001 02:21:42 +0000 (2001-02-02)
parents aa9d0c0e0458
children 6e86256e9c54
line wrap: on
line diff
--- a/src/pt-jump.cc
+++ b/src/pt-jump.cc
@@ -29,9 +29,13 @@
 #endif
 
 #include "error.h"
+#include "oct-obj.h"
+#include "pt-bp.h"
 #include "pt-jump.h"
 #include "pt-walk.h"
 
+class octave_value_list;
+
 // Break.
 
 // Nonzero means we're breaking out of a loop or function body.
@@ -40,6 +44,9 @@
 void
 tree_break_command::eval (void)
 {
+  // Even if we have an error we should still enter debug mode.
+  MAYBE_DO_BREAKPOINT;
+
   if (! error_state)
     breaking = 1;
 }
@@ -58,6 +65,8 @@
 void
 tree_continue_command::eval (void)
 {
+  MAYBE_DO_BREAKPOINT;
+
   if (! error_state)
     continuing = 1;
 }
@@ -77,6 +86,8 @@
 void
 tree_return_command::eval (void)
 {
+  MAYBE_DO_BREAKPOINT;
+
   if (! error_state)
     returning = 1;
 }