dwtest: add more loclist tests

Adds tests to verify changes in CL 696575:

https://go-review.googlesource.com/c/go/+/696575

Updates the dwdumploc program to search for locations with liveness in
mind. For example, for return parameters (especially unnamed) they will
not be live until the function return (e.g. OpMakeResult) and so trying
to find the location list with a PC value at the function entry will not
yield anything.

Change-Id: Ia7c1455e7c875bdf29fca5e2fb540cd771555635
Reviewed-on: https://go-review.googlesource.com/c/debug/+/714340
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
4 files changed
tree: 48e3ea54ba93229ca48e50afee73df99ad3b3a93
  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 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.