]> Cypherpunks repositories - gostls13.git/commit
internal/bisect: use f.Function instead of f.Func.Name in stack trace
authorRuss Cox <rsc@golang.org>
Fri, 26 Apr 2024 14:46:24 +0000 (10:46 -0400)
committerGopher Robot <gobot@golang.org>
Fri, 3 May 2024 17:28:43 +0000 (17:28 +0000)
commit7b5206bdf37863aee416358b695f6dd2a9f087fc
tree644af30ae54c3e3a38f1b51dbf825d2d3b02c5a1
parent10c035acd669271dc37b9e5354b30ec939ff7c84
internal/bisect: use f.Function instead of f.Func.Name in stack trace

For inlined frames f.Func is nil and f.Func.Name is an empty string.
f.Function is correct all the time.

Change-Id: I7c30f80e7176128ae5576b130d2891f884ee47c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/581996
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Russ Cox <rsc@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/internal/bisect/bisect.go