X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Fcondition.lisp;h=098ec4eec1eb9229524d4ce2e1499a6bdb788ea5;hb=25fe91bf63fd473d9316675b0e0ca9be0079e9eb;hp=705d945f7b9a43ce4e4d88bb039ca83c2b467840;hpb=8f0911fddbd90ba2995c1d7ea0ff9616e3f24a11;p=sbcl.git diff --git a/src/code/condition.lisp b/src/code/condition.lisp index 705d945..098ec4e 100644 --- a/src/code/condition.lisp +++ b/src/code/condition.lisp @@ -1170,6 +1170,7 @@ SB-EXT:PACKAGE-LOCKED-ERROR-SYMBOL.")) (define-condition step-condition () ((form :initarg :form :reader step-condition-form)) + #!+sb-doc (:documentation "Common base class of single-stepping conditions. STEP-CONDITION-FORM holds a string representation of the form being @@ -1180,8 +1181,18 @@ stepped.")) "Form associated with the STEP-CONDITION.") (define-condition step-form-condition (step-condition) - ((source-path :initarg :source-path :reader step-condition-source-path) - (pathname :initarg :pathname :reader step-condition-pathname)) + ((args :initarg :args :reader step-condition-args)) + (:report + (lambda (condition stream) + (let ((*print-circle* t) + (*print-pretty* t) + (*print-readably* nil)) + (format stream + "Evaluating call:~%~< ~@;~A~:>~%~ + ~:[With arguments:~%~{ ~S~%~}~;With unknown arguments~]~%" + (list (step-condition-form condition)) + (eq (step-condition-args condition) :unknown) + (step-condition-args condition))))) #!+sb-doc (:documentation "Condition signalled by code compiled with single-stepping information when about to execute a form. @@ -1215,13 +1226,14 @@ single-stepping information after executing a form. STEP-CONDITION-FORM holds the form, and STEP-CONDITION-RESULT holds the values returned by the form as a list. No associated restarts.")) -(define-condition step-variable-condition (step-result-condition) +(define-condition step-finished-condition (step-condition) () + (:report + (lambda (condition stream) + (declare (ignore condition)) + (format stream "Returning from STEP"))) #!+sb-doc - (:documentation "Condition signalled by code compiled with -single-stepping information when referencing a variable. -STEP-CONDITION-FORM hold the symbol, and STEP-CONDITION-RESULT holds -the value of the variable. No associated restarts.")) + (:documentation "Condition signaled when STEP returns.")) ;;;; restart definitions