]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: print PC, not the counter, for a cgo traceback
authorIan Lance Taylor <iant@golang.org>
Wed, 18 May 2016 22:20:56 +0000 (15:20 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 18 May 2016 23:47:13 +0000 (23:47 +0000)
Change-Id: I54ed7a26a753afb2d6a72080e1f50ce9fba7c183
Reviewed-on: https://go-review.googlesource.com/23228
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/runtime/traceback.go

index 0e96a28945351bde0cf6d23bd89f159f0fc1b98b..eef34708031a66def8f799cc8287aa4329a331c6 100644 (file)
@@ -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