Fix bug which prevented correct recognition of debugging info for the
authorChris Hanson <org/chris-hanson/cph>
Tue, 3 Oct 1989 22:55:38 +0000 (22:55 +0000)
committerChris Hanson <org/chris-hanson/cph>
Tue, 3 Oct 1989 22:55:38 +0000 (22:55 +0000)
root block of a multiple-block compilation.

v7/src/runtime/infutl.scm
v8/src/runtime/infutl.scm

index 09ff4844ef7aa7c32d627bd782075b520bdc9b61..d8a7ce2947b7a7bca9a6893c7c6fe8357cb67137 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/infutl.scm,v 1.12 1989/08/18 19:08:45 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/infutl.scm,v 1.13 1989/10/03 22:55:38 cph Exp $
 
 Copyright (c) 1988, 1989 Massachusetts Institute of Technology
 
@@ -70,7 +70,13 @@ MIT in each case. |#
 (define (read-debugging-info descriptor)
   (cond ((string? descriptor)
         (let ((binf (read-binf-file descriptor)))
-          (and binf (dbg-info? binf) binf)))   ((and (pair? descriptor)
+          (and binf
+               (if (dbg-info? binf)
+                   binf
+                   (and (vector? binf)
+                        (not (zero? (vector-length binf)))
+                        (vector-ref binf 0))))))
+       ((and (pair? descriptor)
              (string? (car descriptor))
              (integer? (cdr descriptor))
              (not (negative? (cdr descriptor))))
index c9c252171fd7446418f83b182218a75c7d7eed78..b8cdb69758f44fb35f05e86b909dde4884a141bc 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/infutl.scm,v 1.12 1989/08/18 19:08:45 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/infutl.scm,v 1.13 1989/10/03 22:55:38 cph Exp $
 
 Copyright (c) 1988, 1989 Massachusetts Institute of Technology
 
@@ -70,7 +70,13 @@ MIT in each case. |#
 (define (read-debugging-info descriptor)
   (cond ((string? descriptor)
         (let ((binf (read-binf-file descriptor)))
-          (and binf (dbg-info? binf) binf)))   ((and (pair? descriptor)
+          (and binf
+               (if (dbg-info? binf)
+                   binf
+                   (and (vector? binf)
+                        (not (zero? (vector-length binf)))
+                        (vector-ref binf 0))))))
+       ((and (pair? descriptor)
              (string? (car descriptor))
              (integer? (cdr descriptor))
              (not (negative? (cdr descriptor))))