diff options
| author | Cherry Mui <cherryyz@google.com> | 2025-10-24 16:27:15 -0400 |
|---|---|---|
| committer | Cherry Mui <cherryyz@google.com> | 2025-10-24 14:17:50 -0700 |
| commit | f5403f15f021521ed82d91e8f28a6865d9aeab34 (patch) | |
| tree | 42b8414232c892f3c9eb1174b67c7385db47ad68 /src/debug | |
| parent | a26f860fa4fee16f77e0ed13eb8286168b3bf097 (diff) | |
| download | go-f5403f15f021521ed82d91e8f28a6865d9aeab34.tar.xz | |
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 <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/debug')
| -rw-r--r-- | src/debug/pe/file_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } } |
