Skip to content

Commit c08436d

Browse files
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 <[email protected]> Reviewed-by: Austin Clements <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 538537a commit c08436d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/traceback.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ func printOneCgoTraceback(pc uintptr, max int, arg *cgoSymbolizerArg) int {
10391039
if arg.file != nil {
10401040
print(gostringnocopy(arg.file), ":", arg.lineno, " ")
10411041
}
1042-
print("pc=", hex(c), "\n")
1042+
print("pc=", hex(pc), "\n")
10431043
c++
10441044
if arg.more == 0 {
10451045
break

0 commit comments

Comments
 (0)