Changeset 11627
- Timestamp:
- 02/05/09 20:13:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/trace.lisp
r11391 r11627 36 36 (require "FORMAT") 37 37 38 (require "CLOS")38 ;;(require "CLOS") 39 39 40 40 (defvar *trace-info-hashtable* (make-hash-table :test #'equal)) … … 42 42 (defstruct trace-info name untraced-function breakp) 43 43 44 (defmethod make-load-form ((object trace-info) &optional environment)45 (make-load-form-saving-slots object :environment environment))44 ;;(defmethod make-load-form ((object trace-info) &optional environment) 45 ;; (make-load-form-saving-slots object :environment environment)) 46 46 47 47 (defvar *trace-depth* 0) … … 90 90 (let ((*print-readably* nil) 91 91 (*print-structure* nil)) 92 ( format *trace-output* (indent "~D: ~S~%") *trace-depth*92 (%format *trace-output* (indent "~D: ~S~%") *trace-depth* 93 93 (cons name args)))) 94 94 (when breakp 95 95 (break)) 96 96 (incf *trace-depth*) 97 (let ((results (multiple-value-list (apply untraced-function args)))) 98 (decf *trace-depth*) 97 (let ((results (multiple-value-list 98 (unwind-protect 99 (apply untraced-function args) 100 (decf *trace-depth*))))) 99 101 (with-standard-io-syntax 100 102 (let ((*print-readably* nil) 101 103 (*print-structure* nil)) 102 ( format *trace-output* (indent "~D: ~A returned") *trace-depth* name)104 (%format *trace-output* (indent "~D: ~A returned") *trace-depth* name) 103 105 (if results 104 106 (dolist (result results) 105 ( format *trace-output* " ~S" result))106 ( format *trace-output* " no values"))107 (%format *trace-output* " ~S" result)) 108 (%format *trace-output* " no values")) 107 109 (terpri *trace-output*))) 108 110 (values-list results)))))
Note: See TracChangeset
for help on using the changeset viewer.