commit | f98d67a52207cd97c8a951b0ccde0d6e76f341c3 | [log] [tgz] |
---|---|---|
author | doujiang24 <doujiang24@gmail.com> | Tue Aug 02 01:33:08 2022 +0000 |
committer | Keith Randall <khr@golang.org> | Mon Aug 15 17:16:40 2022 +0000 |
tree | 54c1ac614ba6e9251bae53951ebf615ab11302cb | |
parent | 8ea6c742c65d0b92f26049709328e4862f52cd14 [diff] |
internal/gocore: extract type name of method value from its wrapper function name It's a single-entry closure laid out like `{pc uintptr, x T}`, and the target pc is for wrapper functions named like pkg.T.m-fm or pkg.(*T).m-fm. So, extract the type name pkg.T or *pkg.T from its wrapper function name. Change-Id: I2b5a2db60ee4d875cd0b9ffb3c4f21a69eef0459 GitHub-Last-Rev: 06c4fafc0dcb54bed351ff2f208238d4a43decad GitHub-Pull-Request: golang/debug#13 Reviewed-on: https://go-review.googlesource.com/c/debug/+/419179 Run-TryBot: Keith Randall <khr@golang.org> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Keith Randall <khr@google.com> Reviewed-by: Keith Randall <khr@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This repository holds utilities and libraries for debugging Go programs.
WARNING! Please expect breaking changes and unstable APIs. Most of them are currently are at an early, experimental stage.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the debug repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/debug:” in the subject line, so it is easy to find.