X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Ftoplevel.lisp;h=9cc5f677bda451062408fe3ace94a5df0df61321;hb=6c4d4d984b1af6b2a73568cec3ab9c8795cff2da;hp=1348ad7457da873008dfe4bc0cec5f7b38dd7fe6;hpb=dc5e3163fe667e2629c7769aa8cf2e501eeeefa6;p=sbcl.git diff --git a/src/code/toplevel.lisp b/src/code/toplevel.lisp index 1348ad7..9cc5f67 100644 --- a/src/code/toplevel.lisp +++ b/src/code/toplevel.lisp @@ -65,7 +65,8 @@ (/show0 "back from INFINITE-ERROR-PROTECTOR") (let ((*current-error-depth* (1+ *current-error-depth*))) (/show0 "in INFINITE-ERROR-PROTECT, incremented error depth") - #+sb-show (sb-debug:backtrace) + ;; arbitrary truncation + #!+sb-show (sb!debug:backtrace 8) ,@forms))) ;;; a helper function for INFINITE-ERROR-PROTECT @@ -215,7 +216,7 @@ (type (unsigned-byte 20) count) (values (unsigned-byte 20))) (let ((loc (int-sap (- (sap-int ptr) (+ offset sb!vm:n-word-bytes))))) - (cond ((<= (sap-int loc) end-of-stack) 0) + (cond ((< (sap-int loc) end-of-stack) 0) ((= offset bytes-per-scrub-unit) (look (int-sap (- (sap-int ptr) bytes-per-scrub-unit)) 0 count)) @@ -228,7 +229,7 @@ (type (unsigned-byte 20) count) (values (unsigned-byte 20))) (let ((loc (int-sap (- (sap-int ptr) offset)))) - (cond ((<= (sap-int loc) end-of-stack) 0) + (cond ((< (sap-int loc) end-of-stack) 0) ((= offset bytes-per-scrub-unit) count) ((zerop (sb!kernel::get-lisp-obj-address (stack-ref loc 0))) @@ -496,7 +497,7 @@ ;; get you out to here. (with-simple-restart (abort - "Reduce debugger level (leaving debugger, returning to toplevel).") + "~@") (catch 'toplevel-catcher #!-sunos (sb!unix:unix-sigsetmask 0) ; FIXME: What is this for? ;; in the event of a control-stack-exhausted-error, we should