internal/gocore: disambiguate type candidates by object size

Match the object size when there are multiple candidates for the pointers to structs with the same struct name and same package name.
Also, allow `-` in the package path.

Change-Id: Ie3b75aa4ab26283bb94c4c0c40d5c196656caf5f
GitHub-Last-Rev: 5b48ab1a6716dfc805f13306fa36f4fc1c018583
GitHub-Pull-Request: golang/debug#11
Reviewed-on: https://go-review.googlesource.com/c/debug/+/419176
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
9 files changed
tree: d288819ed0540fb795c8a7ddb3294a3055f31d87
  1. cmd/
  2. dwtest/
  3. internal/
  4. codereview.cfg
  5. CONTRIBUTING.md
  6. go.mod
  7. go.sum
  8. LICENSE
  9. README.md
README.md

Go Debug

Go Reference

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.

Report Issues / Send Patches

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.