From: Cherry Mui Date: Fri, 24 Oct 2025 20:27:15 +0000 (-0400) Subject: debug/pe: check for zdebug_gdb_scripts section in testDWARF X-Git-Tag: go1.26rc1~499 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f5403f15f0;p=gostls13.git debug/pe: check for zdebug_gdb_scripts section in testDWARF The debug_gdb_scripts sectino may or may not be compressed. Check for both. For #76022. Change-Id: I7541e0aa2b90f6b3b694e02d3dfa99f9019a9e5a Reviewed-on: https://go-review.googlesource.com/c/go/+/714461 Reviewed-by: David Chase LUCI-TryBot-Result: Go LUCI Reviewed-by: Ian Lance Taylor --- diff --git a/src/debug/pe/file_test.go b/src/debug/pe/file_test.go index 3d960ab7f3..acea0455d8 100644 --- a/src/debug/pe/file_test.go +++ b/src/debug/pe/file_test.go @@ -413,7 +413,7 @@ func testDWARF(t *testing.T, linktype int) { var foundDebugGDBScriptsSection bool for _, sect := range f.Sections { - if sect.Name == ".debug_gdb_scripts" { + if sect.Name == ".debug_gdb_scripts" || sect.Name == ".zdebug_gdb_scripts" { foundDebugGDBScriptsSection = true } }