Skip to content

Commit

Permalink
adding Gofunc var in main
Browse files Browse the repository at this point in the history
  • Loading branch information
brigadier-general authored Jun 10, 2024
1 parent f767801 commit a116cfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@ func main_impl(fileName string, printStdPkgs bool, printFilePaths bool, printTyp

var knownPclntabVA = uint64(0)
var knownGoTextBase = uint64(0)
var knownGofuncVA = uint64(0)
restartParseWithRealTextBase:
tabs, err := file.PCLineTable(versionOverride, knownPclntabVA, knownGoTextBase)
tabs, err := file.PCLineTable(versionOverride, knownPclntabVA, knownGoTextBase, knownGofuncVA)

Check failure on line 194 in main.go

View workflow job for this annotation

GitHub Actions / build

too many arguments in call to file.PCLineTable

Check failure on line 194 in main.go

View workflow job for this annotation

GitHub Actions / build

too many arguments in call to file.PCLineTable
if err != nil {
return ExtractMetadata{}, fmt.Errorf("failed to read pclntab: %w", err)
}
Expand Down Expand Up @@ -248,6 +249,7 @@ restartParseWithRealTextBase:
// assign real base and restart pclntab parsing with correct VAs!
knownGoTextBase = tmpModData.TextVA
knownPclntabVA = tab.PclntabVA
knownGofuncVA = tmpModData.Gofunc
goto restartParseWithRealTextBase
}

Expand Down

0 comments on commit a116cfd

Please sign in to comment.