mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-17 09:10:22 +02:00
(debug-trap): Use
`debugger-command-loop' instead of `read-and-dispatch-commands', which isn't actually available. Thanks to Carlos Pita for reporting this. (debugger-command-loop): Define here for 1.6.x.
This commit is contained in:
parent
4f6e301583
commit
63258dc9a1
3 changed files with 15 additions and 1 deletions
|
@ -121,6 +121,11 @@ print the result obtained."
|
|||
|
||||
(define *not-yet-introduced* #t)
|
||||
|
||||
(cond ((string>=? (version) "1.7"))
|
||||
(else
|
||||
(define (debugger-command-loop state)
|
||||
(read-and-dispatch-commands state (current-input-port)))))
|
||||
|
||||
(define-public (debug-trap trap-context)
|
||||
"Invoke the Guile debugger to explore the stack at the specified @var{trap}."
|
||||
(start-stack 'debugger
|
||||
|
@ -144,7 +149,7 @@ print the result obtained."
|
|||
(display "There is 1 frame on the stack.\n\n")
|
||||
(format #t "There are ~A frames on the stack.\n\n" ssize))))
|
||||
(write-state-short-with-source-location state)
|
||||
(read-and-dispatch-commands state (current-input-port)))))
|
||||
(debugger-command-loop state))))
|
||||
|
||||
(define write-state-short-with-source-location
|
||||
(cond ((string>=? (version) "1.7")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue