X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fsource-location.lisp;h=be5d1fdedf5c4a487eb7c1618cf4b90785d04958;hb=f12b298a4ce9090470000360b49523e56475a680;hp=9cb1a9a2564586f8c369d1fa23e725857428835d;hpb=5d04a95274c9ddaebbcd6ddffc5d646e2c25598c;p=sbcl.git diff --git a/src/code/source-location.lisp b/src/code/source-location.lisp index 9cb1a9a..be5d1fd 100644 --- a/src/code/source-location.lisp +++ b/src/code/source-location.lisp @@ -19,7 +19,7 @@ (when (and (boundp '*source-info*) *source-info*) (make-file-info-namestring *compile-file-pathname* - (source-info-file-info *source-info*))) + (sb!c:get-toplevelish-file-info *source-info*))) :type (or string null)) ;; Toplevel form index (toplevel-form-number @@ -53,6 +53,12 @@ (declare (ignore env)) #-sb-xc-host (make-definition-source-location)) +;; We need a regular definition of SOURCE-LOCATION for calls processed +;; during LOAD on a source file while *EVALUATOR-MODE* is :INTERPRET. +#!+sb-source-locations +(setf (symbol-function 'source-location) + (lambda () (make-definition-source-location))) + (/show0 "/Processing source location thunks") #!+sb-source-locations (dolist (fun *source-location-thunks*)