1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 22:10:21 +02:00

Fix source-line-for-user for unknown line

* module/system/vm/debug.scm (source-line-for-user): Fix to allow for
  unknown lines.
This commit is contained in:
Andy Wingo 2014-05-30 11:54:56 -04:00
parent 51177f3515
commit c90e2c6087

View file

@ -657,7 +657,7 @@ section of the ELF image. Returns an ELF symbol, or @code{#f}."
;; one-indexed. Columns, on the other hand, are zero-indexed to both. Go ;; one-indexed. Columns, on the other hand, are zero-indexed to both. Go
;; figure. ;; figure.
(define (source-line-for-user source) (define (source-line-for-user source)
(1+ (source-line source))) (and (source-line source) (1+ (source-line source))))
(define* (find-source-for-addr addr #:optional (define* (find-source-for-addr addr #:optional
(context (find-debug-context addr)) (context (find-debug-context addr))