Skip to content

Commit

Permalink
runtime: print PC, not the counter, for a cgo traceback
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ianlancetaylor committed May 18, 2016
1 parent 538537a commit c08436d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/traceback.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c08436d

Please sign in to comment.