gocore: add missing append in root piece construction

Currently when constructing a Root from a stack variable, we compute all
the pieces of the stack variable, and intend to store those pieces along
with the root. Except, the code is currently buggy and doesn't actually
append to the slice of pieces. Oops. Add in the append, which suddenly
makes a whole bunch of stack variables visible.

Change-Id: I0ae7577aa3959f72c0641711aa3799b3708447a0
Reviewed-on: https://go-review.googlesource.com/c/debug/+/659336
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Commit-Queue: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Nicolas Hillegeer <aktau@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 file changed
tree: 2a16ad4f1c6117067ac4c72491c8a68257a7d815
  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.