Skip to content

Commit

Permalink
gopclntab: enable recover except in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gandem committed Jan 27, 2025
1 parent 6f04780 commit 79ced85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pclntab/pclntab.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ const (
magicGo1_16 = 0xfffffffa
magicGo1_18 = 0xfffffff0
magicGo1_20 = 0xfffffff1
)

disableRecover = true
var (
disableRecover = false
)

type GoPCLnTabInfo struct {
Expand Down
1 change: 1 addition & 0 deletions pclntab/pclntab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func getGoToolChain(goMinorVersion int) string {

func TestGoPCLnTabExtraction(t *testing.T) {
t.Parallel()
disableRecover = true
testDataDir := "../testdata"
srcFile := "helloworld.go"
tests := map[string]struct {
Expand Down

0 comments on commit 79ced85

Please sign in to comment.