diff options
author | karthik nayak <karthik.188@gmail.com> | 2019-01-05 08:44:30 -0500 |
---|---|---|
committer | Bryan C. Mills <bcmills@google.com> | 2019-03-08 22:40:10 +0000 |
commit | d3dd2588ebebd7c3a166069a8f572ce7e4b364ef (patch) | |
tree | a3eb3039c408efb6ed52e13a545c44cf8a38e2b6 /src/debug | |
parent | 8782fd04319e16b372852ae8572b8c90f56e01ae (diff) | |
download | go-d3dd2588ebebd7c3a166069a8f572ce7e4b364ef.tar.gz go-d3dd2588ebebd7c3a166069a8f572ce7e4b364ef.zip |
gosym/pclntab: mark LineTable.LineToPC and LineTable.PCToLine as deprecated
Currently they aren't marked as deprecated as Godoc, but the comments
mention that they are deprecated. Mark them as officially deprecated.
Fixes #29576
Change-Id: I795c698ac715476023d80579d60932fba4c5edde
Reviewed-on: https://go-review.googlesource.com/c/go/+/156331
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Diffstat (limited to 'src/debug')
-rw-r--r-- | src/debug/gosym/pclntab.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/debug/gosym/pclntab.go b/src/debug/gosym/pclntab.go index ad99b4dc5a..7e54a94351 100644 --- a/src/debug/gosym/pclntab.go +++ b/src/debug/gosym/pclntab.go @@ -93,7 +93,8 @@ func (t *LineTable) slice(pc uint64) *LineTable { } // PCToLine returns the line number for the given program counter. -// Callers should use Table's PCToLine method instead. +// +// Deprecated: Use Table's PCToLine method instead. func (t *LineTable) PCToLine(pc uint64) int { if t.isGo12() { return t.go12PCToLine(pc) @@ -104,7 +105,8 @@ func (t *LineTable) PCToLine(pc uint64) int { // LineToPC returns the program counter for the given line number, // considering only program counters before maxpc. -// Callers should use Table's LineToPC method instead. +// +// Deprecated: Use Table's LineToPC method instead. func (t *LineTable) LineToPC(line int, maxpc uint64) uint64 { if t.isGo12() { return 0 |