Assembler: Cope with non-string port filenames.
authorMark H Weaver <mhw@netris.org>
Sun, 14 Dec 2014 15:24:00 +0000 (10:24 -0500)
committerMark H Weaver <mhw@netris.org>
Sun, 14 Dec 2014 15:24:00 +0000 (10:24 -0500)
Fixes <http://bugs.gnu.org/19354>.
Reported by Linas Vepstas <linasvepstas@gmail.com>.

* module/system/vm/assembler.scm (write-sources): Intern the filename
  only if it's a string.  (For sockets, the filename is a symbol).

module/system/vm/assembler.scm

index 97eade6..3d277ad 100644 (file)
@@ -2141,7 +2141,7 @@ procedure with label @var{rw-init}.  @var{rw-init} may be false.  If
                  ;; Guile line and column numbers are 0-indexed, but
                  ;; they are 1-indexed for DWARF.
                  (cons (list pc
-                             (if file (intern-file file) 0)
+                             (if (string? file) (intern-file file) 0)
                              (if line (1+ line))
                              (if col (1+ col)))
                        out))))