mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-05 06:50:21 +02:00
(top-repl): Use 2 as the limit when saving the stack.
(error-catching-loop): use call-with-blocked-asyncs and call-with-unblocked-asyncs instead of mask-signals and unmask-signals.
This commit is contained in:
parent
be2588b87d
commit
bb00edfa92
1 changed files with 5 additions and 6 deletions
|
@ -2122,8 +2122,7 @@
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(lazy-catch #t
|
(lazy-catch #t
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(dynamic-wind
|
(call-with-unblocked-asyncs
|
||||||
(lambda () (unmask-signals))
|
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(with-traps
|
(with-traps
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
@ -2137,8 +2136,7 @@
|
||||||
(set! first #f)
|
(set! first #f)
|
||||||
(let loop ((v (thunk)))
|
(let loop ((v (thunk)))
|
||||||
(loop (thunk)))
|
(loop (thunk)))
|
||||||
#f)))
|
#f)))))
|
||||||
(lambda () (mask-signals))))
|
|
||||||
|
|
||||||
lazy-handler-dispatch))
|
lazy-handler-dispatch))
|
||||||
|
|
||||||
|
@ -2194,7 +2192,8 @@
|
||||||
(#t
|
(#t
|
||||||
(error "sorry, not implemented")))))
|
(error "sorry, not implemented")))))
|
||||||
(set! batch-mode? (lambda () (not interactive)))
|
(set! batch-mode? (lambda () (not interactive)))
|
||||||
(loop (lambda () #t))))
|
(call-with-blocked-asyncs
|
||||||
|
(lambda () (loop (lambda () #t))))))
|
||||||
|
|
||||||
;;(define the-last-stack (make-fluid)) Defined by scm_init_backtrace ()
|
;;(define the-last-stack (make-fluid)) Defined by scm_init_backtrace ()
|
||||||
(define before-signal-stack (make-fluid))
|
(define before-signal-stack (make-fluid))
|
||||||
|
@ -2872,7 +2871,7 @@
|
||||||
;; Make a backup copy of the stack
|
;; Make a backup copy of the stack
|
||||||
(fluid-set! before-signal-stack
|
(fluid-set! before-signal-stack
|
||||||
(fluid-ref the-last-stack))
|
(fluid-ref the-last-stack))
|
||||||
(save-stack 1)
|
(save-stack 2)
|
||||||
(scm-error 'signal
|
(scm-error 'signal
|
||||||
#f
|
#f
|
||||||
msg
|
msg
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue