1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 03:30:27 +02:00

fix ,traps REPL command

* module/system/repl/command.scm (traps): Fix this REPL meta-command.
This commit is contained in:
Andy Wingo 2010-09-24 17:32:12 +02:00
parent 8cbcaaa0ae
commit 3e2c5f1ef3

View file

@ -611,11 +611,11 @@ Show the set of currently attached traps (breakpoints and tracepoints)."
(let ((traps (list-traps)))
(if (null? traps)
(format #t "No traps set.~%")
(for-each (lambda (idx name)
(for-each (lambda (idx)
(format #t " ~a: ~a~a~%"
idx (trap-name idx)
(if (trap-enabled? idx) "" " (disabled)")))
(map car traps) (map cdr traps)))))
traps))))
(define-meta-command (delete repl idx)
"delete IDX