summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2016-11-17 16:06:05 -0800
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:51 -0800
commit84732aebd10c293101727ba567bfc733dc30efca (patch)
treec38d55d2ea9d7ec30de0e173ae4b6cfdff2ec351
parent05ac336ea954c0f5eefabdefb0c8c5747be3fd32 (diff)
altos/lisp: Dump globals on error
Useful for debugging Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/lisp/ao_lisp_error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lisp/ao_lisp_error.c b/src/lisp/ao_lisp_error.c
index 2b15c418..7ad7b2b5 100644
--- a/src/lisp/ao_lisp_error.c
+++ b/src/lisp/ao_lisp_error.c
@@ -106,5 +106,8 @@ ao_lisp_error(int error, char *format, ...)
va_end(args);
printf("\n");
ao_lisp_stack_print();
+ printf("Globals:\n\t");
+ ao_lisp_frame_print(ao_lisp_frame_poly(ao_lisp_frame_global));
+ printf("\n");
return AO_LISP_NIL;
}