From: Ian Lance Taylor Date: Wed, 18 May 2016 22:20:56 +0000 (-0700) Subject: runtime: print PC, not the counter, for a cgo traceback X-Git-Tag: go1.7beta1~161 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c08436d1c897996055892882d23ce6778f3492f7;p=gostls13.git 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 --- 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