]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix missing newline when dumping bad symbol table
authorAustin Clements <austin@google.com>
Mon, 8 Dec 2014 16:12:33 +0000 (11:12 -0500)
committerAustin Clements <austin@google.com>
Mon, 8 Dec 2014 18:39:58 +0000 (18:39 +0000)
If the symbol table isn't sorted, we print it and abort.  However, we
were missing the line break after each symbol, resulting in one
gigantic line instead of a nicely formatted table.

Change-Id: Ie5c6f3c256d0e648277cb3db4496512a79d266dd
Reviewed-on: https://go-review.googlesource.com/1182
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/symtab.go

index 749a289cd10bbb53747c0cc0d89d78f188750221..8a6ed0272f824a22690cc97e4d3e686e1d74202d 100644 (file)
@@ -77,7 +77,7 @@ func symtabinit() {
                        }
                        println("function symbol table not sorted by program counter:", hex(ftab[i].entry), gofuncname(f1), ">", hex(ftab[i+1].entry), f2name)
                        for j := 0; j <= i; j++ {
-                               print("\t", hex(ftab[j].entry), " ", gofuncname((*_func)(unsafe.Pointer(&pclntable[ftab[j].funcoff]))))
+                               print("\t", hex(ftab[j].entry), " ", gofuncname((*_func)(unsafe.Pointer(&pclntable[ftab[j].funcoff]))), "\n")
                        }
                        gothrow("invalid runtime symbol table")
                }