From c08436d1c897996055892882d23ce6778f3492f7 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 18 May 2016 15:20:56 -0700 Subject: [PATCH] runtime: print PC, not the counter, for a cgo traceback Change-Id: I54ed7a26a753afb2d6a72080e1f50ce9fba7c183 Reviewed-on: https://go-review.googlesource.com/23228 Run-TryBot: Ian Lance Taylor Reviewed-by: Austin Clements TryBot-Result: Gobot Gobot --- src/runtime/traceback.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/traceback.go b/src/runtime/traceback.go index 0e96a28945..eef3470803 100644 --- a/src/runtime/traceback.go +++ b/src/runtime/traceback.go @@ -1039,7 +1039,7 @@ func printOneCgoTraceback(pc uintptr, max int, arg *cgoSymbolizerArg) int { if arg.file != nil { print(gostringnocopy(arg.file), ":", arg.lineno, " ") } - print("pc=", hex(c), "\n") + print("pc=", hex(pc), "\n") c++ if arg.more == 0 { break -- 2.50.0