about summary refs log tree commit diff stats
path: root/shell/evaluate.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-04-18 10:27:40 -0700
committerKartik K. Agaram <vc@akkartik.com>2021-04-18 11:56:10 -0700
commitd94821d301b5ea89221e8164382a03e72ac26851 (patch)
tree9b89f165c8f9eaf0b3d5ecd3c4efe140ca5b4cb5 /shell/evaluate.mu
parentd0804ac04bece4ea885530bfc21efe70b0425189 (diff)
downloadmu-d94821d301b5ea89221e8164382a03e72ac26851.tar.gz
some primitives for monitoring code integrity
Diffstat (limited to 'shell/evaluate.mu')
-rw-r--r--shell/evaluate.mu3
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/evaluate.mu b/shell/evaluate.mu
index fa8610c7..8dd794db 100644
--- a/shell/evaluate.mu
+++ b/shell/evaluate.mu
@@ -2,6 +2,9 @@
 # we never modify `in` or `env`
 # ignore 'screen-cell' on a first reading; it's a hack for sandboxes
 fn evaluate _in: (addr handle cell), out: (addr handle cell), env-h: (handle cell), globals: (addr global-table), trace: (addr trace), screen-cell: (addr handle cell), keyboard-cell: (addr handle cell) {
+  # stack overflow?
+  check-stack
+  show-stack-state
   # errors? skip
   {
     compare trace, 0