aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/symtab.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2014-12-08 11:12:33 -0500
committerAustin Clements <austin@google.com>2014-12-08 18:39:58 +0000
commit006ceb2f1dd64e75134347ae9a73be397ff8a2ed (patch)
treeb985210ca93b6ca10759b38df4bc4eab2ba5f121 /src/runtime/symtab.go
parent0f2db8217471d01fa5fa525242eeb8ca17674e36 (diff)
downloadgo-006ceb2f1dd64e75134347ae9a73be397ff8a2ed.tar.xz
runtime: fix missing newline when dumping bad symbol table
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>
Diffstat (limited to 'src/runtime/symtab.go')
-rw-r--r--src/runtime/symtab.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go
index 749a289cd1..8a6ed0272f 100644
--- a/src/runtime/symtab.go
+++ b/src/runtime/symtab.go
@@ -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")
}