1
0
mirror of https://github.com/golang/go synced 2024-11-26 19:51:17 -07:00

debug/gosym: update doc as requested

This commit is contained in:
Zxilly 2024-01-24 21:22:11 +00:00 committed by GitHub
parent c5f2ed9d1b
commit 9c617b65be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -152,7 +152,7 @@ func (t *LineTable) LineToPC(line int, maxpc uint64) uint64 {
// value stored in the 'runtime.text' symbol.
// This value may differ from the start
// address of the text segment if
// -linkmode=external is specified.
// binary was built with cgo enabled.
func NewLineTable(data []byte, text uint64) *LineTable {
return &LineTable{Data: data, PC: text, Line: 0, funcNames: make(map[uint32]string), strings: make(map[uint32]string)}
}