Implement debug information also for compiled LET/LET*

This commit is contained in:
Juan Jose Garcia Ripoll 2009-06-08 20:03:02 +02:00
parent 0eb4fcdf66
commit 2282dd3e92

View file

@ -231,7 +231,16 @@
(dolist (binding (nreverse bindings))
(bind (cdr binding) (car binding)))
(c2expr body)
(if (and *debug-fun* (>= *debug-fun* 3))
(let ((*unwind-exit* *unwind-exit*))
(wt-nl "{")
(let* ((env (build-debug-lexical-env vars)))
(when env (push 'IHS-ENV *unwind-exit*))
(c2expr body)
(wt-nl "}")
(when env (pop-debug-lexical-env))))
(c2expr body))
(when block-p (wt-nl "}"))
)
@ -441,7 +450,15 @@
(c2expr* form)))
)
)
(c2expr body)
(if (and *debug-fun* (>= *debug-fun* 3))
(let ((*unwind-exit* *unwind-exit*))
(wt-nl "{")
(let* ((env (build-debug-lexical-env vars)))
(when env (push 'IHS-ENV *unwind-exit*))
(c2expr body)
(wt-nl "}")
(when env (pop-debug-lexical-env))))
(c2expr body))
(when block-p (wt-nl "}"))
)