]> Cypherpunks repositories - gostls13.git/commit
cmd/link: relocate dwarf examiner helper to separate package
authorThan McIntosh <thanm@google.com>
Fri, 12 Nov 2021 18:20:07 +0000 (13:20 -0500)
committerThan McIntosh <thanm@google.com>
Thu, 18 Nov 2021 14:00:00 +0000 (14:00 +0000)
commit14c3f749bebafe10d60cf5a9b1f4ae6663ff862a
tree0c7e49fad96678a11a10d3a5b8da39b7683cd351
parentf6647f2e3bc0b803a67c97a7d5d8733cefbd5d5b
cmd/link: relocate dwarf examiner helper to separate package

The linker DWARF test includes an "examiner" helper type (with
associated methods) that is used to help linker DWARF tests read DWARF
info in a higher level and more structured way than just raw
debug/dwarf operations. This patch extracts out "examiner" and
relocates it to a separate package, so that it can be used in other
package tests as well, if need be.

Change-Id: Iec66061e2719ee698c12d8fa17b11698442b336d
Reviewed-on: https://go-review.googlesource.com/c/go/+/364036
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/link/internal/dwtest/dwtest.go [new file with mode: 0644]
src/cmd/link/internal/ld/dwarf_test.go