mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 20:30:28 +02:00
Fix error in recent define-option-interface "simplification".
Fix source breakpoints to cope with port whose filename is #f. Ensure that position recording is enabled when source breakpoint module loaded.
This commit is contained in:
parent
0983f67f09
commit
3f619266b1
3 changed files with 17 additions and 1 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2002-11-05 Neil Jerram <neil@ossau.uklinux.net>
|
||||||
|
|
||||||
|
* boot-9.scm (define-option-interface): Fix to "simplification"
|
||||||
|
change below.
|
||||||
|
|
||||||
|
* debugger/breakpoints/source.scm: Enable source property
|
||||||
|
recording when module is loaded.
|
||||||
|
(##): Cope with ports whose `filename' is not a string.
|
||||||
|
|
||||||
2002-11-04 Neil Jerram <neil@ossau.uklinux.net>
|
2002-11-04 Neil Jerram <neil@ossau.uklinux.net>
|
||||||
|
|
||||||
* boot-9.scm (define-option-interface): Simplify code-generation
|
* boot-9.scm (define-option-interface): Simplify code-generation
|
||||||
|
|
|
@ -2033,7 +2033,8 @@
|
||||||
,(make-disable interface))
|
,(make-disable interface))
|
||||||
(defmacro ,(caaddr option-group) (opt val)
|
(defmacro ,(caaddr option-group) (opt val)
|
||||||
`(,,(car options/enable/disable)
|
`(,,(car options/enable/disable)
|
||||||
(list ',opt ,val)))))))))
|
(append (,,(car options/enable/disable))
|
||||||
|
(list ',opt ,val))))))))))
|
||||||
|
|
||||||
(define-option-interface
|
(define-option-interface
|
||||||
(eval-options-interface
|
(eval-options-interface
|
||||||
|
|
|
@ -257,9 +257,15 @@
|
||||||
(set-source-property! x' 'column
|
(set-source-property! x' 'column
|
||||||
column)
|
column)
|
||||||
x'))))
|
x'))))
|
||||||
|
;; Don't allow breakpointed expression to have
|
||||||
|
;; a filename property that isn't a string.
|
||||||
|
(or (string? filename)
|
||||||
|
(set-source-property! x' 'filename "<unnamed port>"))
|
||||||
(break! x x')
|
(break! x x')
|
||||||
x'))))
|
x'))))
|
||||||
|
|
||||||
|
(read-enable 'positions)
|
||||||
|
|
||||||
; (define g (make-guardian))
|
; (define g (make-guardian))
|
||||||
; (read-hash-extend #\g
|
; (read-hash-extend #\g
|
||||||
; (lambda (c port)
|
; (lambda (c port)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue