mirror of
https://github.com/golang/go.git
synced 2024-09-21 18:38:37 +00:00
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>
This commit is contained in:
parent
10c035acd6
commit
7b5206bdf3
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user