diff options
| author | Keith Randall <khr@golang.org> | 2016-12-01 10:10:17 -0800 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2016-12-01 18:20:04 +0000 |
| commit | 3c2e4ed8d31e65556e936bf394a47e644605d23d (patch) | |
| tree | 0f9c261abca52d10618e5c2b996579929a2546ed /src/debug | |
| parent | 612469ab0b57bb53d1f054e37b64a63c08d8c6db (diff) | |
| download | go-3c2e4ed8d31e65556e936bf394a47e644605d23d.tar.xz | |
cmd/objdump: copy gosym.PCValue into internal package
... so we don't have to export gosym.PCValue.
Change-Id: Ie8f196d5e5ab63e3e69d1d7b4bfbbf32b7b5e4f5
Reviewed-on: https://go-review.googlesource.com/33791
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/gosym/pclntab.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/debug/gosym/pclntab.go b/src/debug/gosym/pclntab.go index e94ed19d7d..ba1cf8b699 100644 --- a/src/debug/gosym/pclntab.go +++ b/src/debug/gosym/pclntab.go @@ -291,13 +291,6 @@ func (t *LineTable) step(p *[]byte, pc *uint64, val *int32, first bool) bool { return true } -// PCValue looks up the given PC in a pc value table. target is the -// offset of the pc from the entry point. -func PCValue(tab []byte, target uint64, quantum int) int { - t := LineTable{Data: tab, quantum: uint32(quantum)} - return int(t.pcvalue(0, 0, target)) -} - // pcvalue reports the value associated with the target pc. // off is the offset to the beginning of the pc-value table, // and entry is the start PC for the corresponding function. |
