dwtest: add explicit testpoint for runtime.throw

Add a new testpoint that verifies the DWARF var location for the
incoming parameter of the function 'runtime.throw'. We already have
testpoings that validate DWARF for regular user-written functions that
take a single string argument (as does 'runtime.throw'), but it is
good to test the function in the runtime as well, since the rules for
compiling the runtime are special, and we occasionally problems with
DWARF generation can crop up that are runtime-specific.

Fixes golang/go#62523.

Cq-Include-Trybots: luci.golang.try:x_debug-gotip-linux-amd64-longtest
Change-Id: I6558d9f12b22c997535cfc23d4b0758b10bd9548
Reviewed-on: https://go-review.googlesource.com/c/debug/+/526836
Reviewed-by: Alessandro Arzilli <alessandro.arzilli@gmail.com>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 file changed
tree: f84d92be9599bdb3e053617042c2580504281cbc
  1. cmd/
  2. dwtest/
  3. internal/
  4. codereview.cfg
  6. go.mod
  7. go.sum
  9. 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.