gocore: fix bad processing of large object pointers

Currently large object pointer finding has a bug in that we don't
interpret largeType as an array element type (which it is) and instead
as the single type for the entire array. This means we miss lots of
pointers in large objects that are, for example, a slice of pointers.

Change-Id: I9ade197b5db9ac52b829524e0d70822c8fdc1dbf
Reviewed-on: https://go-review.googlesource.com/c/debug/+/659335
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Nicolas Hillegeer <aktau@google.com>
3 files changed
tree: bf7181a1207dcb7bd9af903f1a74efa528189d87
  1. cmd/
  2. dwtest/
  3. internal/
  4. third_party/
  5. codereview.cfg
  6. CONTRIBUTING.md
  7. go.mod
  8. go.sum
  9. LICENSE
  10. 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://go.dev/doc/contribute.

The git repository is https://go.googlesource.com/debug.

The main issue tracker for the debug repository is located at https://go.dev/issues. Prefix your issue with “x/debug:” in the subject line, so it is easy to find.