Skip to content

Commit

Permalink
adding Gofunc param to NewLineTable() -- pclntab.go
Browse files Browse the repository at this point in the history
  • Loading branch information
brigadier-general authored Jun 10, 2024
1 parent 5398a6a commit 8df84f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debug/gosym/pclntab.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ func (t *LineTable) LineToPC(line int, maxpc uint64) uint64 {
// corresponding to the encoded data.
// Text must be the start address of the
// corresponding text segment.
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)}
func NewLineTable(data []byte, text uint64, gofunc uint64) *LineTable {
return &LineTable{Data: data, PC: text, Gofunc: gofunc, Line: 0, funcNames: make(map[uint32]string), strings: make(map[uint32]string)}

Check failure on line 176 in debug/gosym/pclntab.go

View workflow job for this annotation

GitHub Actions / build

unknown field Gofunc in struct literal of type LineTable
}

// Go 1.2 symbol table format.
Expand Down

0 comments on commit 8df84f7

Please sign in to comment.