]> Cypherpunks.ru repositories - gostls13.git/commit
debug/dwarf: check for DWARFv4 AttrDataBitOffset value
authorJoe Sylve <joe.sylve@gmail.com>
Thu, 2 Sep 2021 19:09:15 +0000 (19:09 +0000)
committerThan McIntosh <thanm@google.com>
Thu, 2 Sep 2021 19:56:24 +0000 (19:56 +0000)
commit065f3808156c92d957fc1ad2a2a37e147ee628f4
treec204b01ef5ffbeaabba69b0c1d6de2a956ef38f5
parenta8aa6cfa6d41a1be17bf8d35c490f693935f81ac
debug/dwarf: check for DWARFv4 AttrDataBitOffset value

AttrBitOffset is deprecated (but reserved) in DWARFv4.  This fix adds
logic to check the new AttrDataBitOffset attribute if AttrBitOffset
attribute is not present.

Fixes #46784

Change-Id: I7406dcaa4c98e95df72361fd4462c39e6be8879d
GitHub-Last-Rev: 5aa10d04910a09538320b4de8fbd8a1f5fd8c17d
GitHub-Pull-Request: golang/go#46790
Reviewed-on: https://go-review.googlesource.com/c/go/+/328709
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Michael Knyszek <mknyszek@google.com>
src/debug/dwarf/testdata/typedef.c
src/debug/dwarf/testdata/typedef.macho4 [new file with mode: 0644]
src/debug/dwarf/type.go
src/debug/dwarf/type_test.go