From ee1730f8da6901846da2bf7d5da02a5e36061266 Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Fri, 27 Jan 2006 20:52:19 +0000 Subject: [PATCH] Signal an error if we try to trace flet/labels functions using encapsulation. We can't do that because there's nothing to wrap. --- code/ntrace.lisp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/code/ntrace.lisp b/code/ntrace.lisp index 88f4f691a..c7b7806f0 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 -- GitLab