diff options
| author | Joe Sylve <joe.sylve@gmail.com> | 2021-09-02 19:09:15 +0000 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2021-09-02 19:56:24 +0000 |
| commit | 065f3808156c92d957fc1ad2a2a37e147ee628f4 (patch) | |
| tree | c204b01ef5ffbeaabba69b0c1d6de2a956ef38f5 /src/debug/dwarf/testdata | |
| parent | a8aa6cfa6d41a1be17bf8d35c490f693935f81ac (diff) | |
| download | go-065f3808156c92d957fc1ad2a2a37e147ee628f4.tar.xz | |
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>
Diffstat (limited to 'src/debug/dwarf/testdata')
| -rw-r--r-- | src/debug/dwarf/testdata/typedef.c | 1 | ||||
| -rw-r--r-- | src/debug/dwarf/testdata/typedef.macho4 | bin | 0 -> 6220 bytes |
2 files changed, 1 insertions, 0 deletions
diff --git a/src/debug/dwarf/testdata/typedef.c b/src/debug/dwarf/testdata/typedef.c index 4780a0b2ba..3e7e008621 100644 --- a/src/debug/dwarf/testdata/typedef.c +++ b/src/debug/dwarf/testdata/typedef.c @@ -8,6 +8,7 @@ gcc -gdwarf-2 -m64 -c typedef.c && gcc -gdwarf-2 -m64 -o typedef.elf typedef.o OS X Mach-O: gcc -gdwarf-2 -m64 -c typedef.c -o typedef.macho +gcc -gdwarf-4 -m64 -c typedef.c -o typedef.macho4 */ #include <complex.h> diff --git a/src/debug/dwarf/testdata/typedef.macho4 b/src/debug/dwarf/testdata/typedef.macho4 Binary files differnew file mode 100644 index 0000000000..093ff37ea1 --- /dev/null +++ b/src/debug/dwarf/testdata/typedef.macho4 |
