about summary refs log tree commit diff stats
path: root/081run_interactive.cc
diff options
context:
space:
mode:
Diffstat (limited to '081run_interactive.cc')
-rw-r--r--081run_interactive.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/081run_interactive.cc b/081run_interactive.cc
index dc46cf1f..ced4f763 100644
--- a/081run_interactive.cc
+++ b/081run_interactive.cc
@@ -98,6 +98,11 @@ bool run_interactive(long long int address) {
   if (trace_count("error") > 0) return false;
   // now call 'sandbox' which will run 'interactive' in a separate routine,
   // and wait for it
+  if (Save_trace_stream) {
+    ++Save_trace_stream->callstack_depth;
+    trace("trace") << "run-interactive: incrementing callstack depth to " << Save_trace_stream->callstack_depth << end();
+    assert(Save_trace_stream->callstack_depth < 9000);  // 9998-101 plus cushion
+  }
   Current_routine->calls.push_front(call(Recipe_ordinal["sandbox"]));
   return true;
 }