diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2021-09-28 15:57:09 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2021-09-29 16:45:53 +0000 |
| commit | 10186e8d691f2af92c17034a70b01ca7eb9f4fee (patch) | |
| tree | e130efc7b08fa34ba9dbb70b857d239b729427a8 /src/debug | |
| parent | 2fad7dbb893737a01c7ab4f382720a2b0440b736 (diff) | |
| download | go-10186e8d691f2af92c17034a70b01ca7eb9f4fee.tar.xz | |
debug/gosym: adjust go12* method comments
These methods are for use with Go 1.2 _and later_ pcln tables.
Make that clearer.
Change-Id: Iee06e0828fd5895639b654363b6d91bf9151d224
Reviewed-on: https://go-review.googlesource.com/c/go/+/352950
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/gosym/pclntab.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/debug/gosym/pclntab.go b/src/debug/gosym/pclntab.go index 5d65b7826a..5d18410a78 100644 --- a/src/debug/gosym/pclntab.go +++ b/src/debug/gosym/pclntab.go @@ -264,7 +264,7 @@ func (t *LineTable) parsePclnTab() { t.version = possibleVersion } -// go12Funcs returns a slice of Funcs derived from the Go 1.2 pcln table. +// go12Funcs returns a slice of Funcs derived from the Go 1.2+ pcln table. func (t *LineTable) go12Funcs() []Func { // Assume it is malformed and return nil on error. if !disableRecover { @@ -442,7 +442,7 @@ func (t *LineTable) findFileLine(entry uint64, filetab, linetab uint32, filenum, return 0 } -// go12PCToLine maps program counter to line number for the Go 1.2 pcln table. +// go12PCToLine maps program counter to line number for the Go 1.2+ pcln table. func (t *LineTable) go12PCToLine(pc uint64) (line int) { defer func() { if !disableRecover && recover() != nil { @@ -459,7 +459,7 @@ func (t *LineTable) go12PCToLine(pc uint64) (line int) { return int(t.pcvalue(linetab, entry, pc)) } -// go12PCToFile maps program counter to file name for the Go 1.2 pcln table. +// go12PCToFile maps program counter to file name for the Go 1.2+ pcln table. func (t *LineTable) go12PCToFile(pc uint64) (file string) { defer func() { if !disableRecover && recover() != nil { @@ -491,7 +491,7 @@ func (t *LineTable) go12PCToFile(pc uint64) (file string) { return "" } -// go12LineToPC maps a (file, line) pair to a program counter for the Go 1.2/1.16 pcln table. +// go12LineToPC maps a (file, line) pair to a program counter for the Go 1.2+ pcln table. func (t *LineTable) go12LineToPC(file string, line int) (pc uint64) { defer func() { if !disableRecover && recover() != nil { |
