aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2024-04-26 10:46:24 -0400
committerGopher Robot <gobot@golang.org>2024-05-03 17:28:43 +0000
commit7b5206bdf37863aee416358b695f6dd2a9f087fc (patch)
tree644af30ae54c3e3a38f1b51dbf825d2d3b02c5a1 /src
parent10c035acd669271dc37b9e5354b30ec939ff7c84 (diff)
downloadgo-7b5206bdf37863aee416358b695f6dd2a9f087fc.tar.gz
go-7b5206bdf37863aee416358b695f6dd2a9f087fc.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/internal/bisect/bisect.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/bisect/bisect.go b/src/internal/bisect/bisect.go
index fa753e80e7..a79bb8000d 100644
--- a/src/internal/bisect/bisect.go
+++ b/src/internal/bisect/bisect.go
@@ -496,7 +496,7 @@ func printStack(w Writer, h uint64, stk []uintptr) error {
for {
f, more := frames.Next()
buf = append(buf, prefix...)
- buf = append(buf, f.Func.Name()...)
+ buf = append(buf, f.Function...)
buf = append(buf, "()\n"...)
buf = append(buf, prefix...)
buf = append(buf, '\t')