Commit c08436d1 authored by Ian Lance Taylor's avatar Ian Lance Taylor

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 <iant@golang.org>
Reviewed-by: 's avatarAustin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 538537a2
...@@ -1039,7 +1039,7 @@ func printOneCgoTraceback(pc uintptr, max int, arg *cgoSymbolizerArg) int { ...@@ -1039,7 +1039,7 @@ func printOneCgoTraceback(pc uintptr, max int, arg *cgoSymbolizerArg) int {
if arg.file != nil { if arg.file != nil {
print(gostringnocopy(arg.file), ":", arg.lineno, " ") print(gostringnocopy(arg.file), ":", arg.lineno, " ")
} }
print("pc=", hex(c), "\n") print("pc=", hex(pc), "\n")
c++ c++
if arg.more == 0 { if arg.more == 0 {
break break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment