diff --git a/code/ntrace.lisp b/code/ntrace.lisp index 88f4f691a5d09e6e298a164355f2f081fda461bb..c7b7806f0269e6c2c8940c6065fb7fb8a43c4aa2 100644 --- a/code/ntrace.lisp +++ b/code/ntrace.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/ntrace.lisp,v 1.33 2006/01/23 14:11:02 rtoy Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/ntrace.lisp,v 1.34 2006/01/27 20:52:19 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -167,7 +167,7 @@ (list ;; An extended function name for flets/labels. Should we ;; make this check? - (values x nil)) + (values x t)) (t (values (fdefinition x) t))) (if (eval:interpreted-function-p res) (values res named-p (if (eval:interpreted-function-closure res) @@ -470,6 +470,9 @@ (unless named (error "Can't use encapsulation to trace anonymous function ~S." fun)) + (when (listp fun) + (error "Can't use encapsulation to trace local flet/labels function ~S." + fun)) (fwrap function-or-name #'trace-fwrapper :type 'trace :user-data info)) (t