From 34620364cb2ea52e0ebf400a9cda91f86cb38a25 Mon Sep 17 00:00:00 2001 From: David Chase Date: Tue, 13 Apr 2021 14:12:43 -0400 Subject: runtime, cgo/test: improve debugging output tests that run commands should log their actions in a shell-pasteable way. Change-Id: Ifeee88397047ef5a76925c5f30c213e83e535038 Reviewed-on: https://go-review.googlesource.com/c/go/+/309770 Trust: David Chase Run-TryBot: David Chase TryBot-Result: Go Bot Reviewed-by: Cherry Zhang --- src/runtime/plugin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/runtime/plugin.go') diff --git a/src/runtime/plugin.go b/src/runtime/plugin.go index 5e05be71ec..cd7fc5f848 100644 --- a/src/runtime/plugin.go +++ b/src/runtime/plugin.go @@ -115,7 +115,8 @@ func pluginftabverify(md *moduledata) { entry2 = f2.entry } badtable = true - println("ftab entry outside pc range: ", hex(entry), "/", hex(entry2), ": ", name, "/", name2) + println("ftab entry", hex(entry), "/", hex(entry2), ": ", + name, "/", name2, "outside pc range:[", hex(md.minpc), ",", hex(md.maxpc), "], modulename=", md.modulename, ", pluginpath=", md.pluginpath) } if badtable { throw("runtime: plugin has bad symbol table") -- cgit v1.3