]> Cypherpunks repositories - gostls13.git/commit
debug/dwarf, debug/elf: add support for reading DWARF 4 type info
authorIan Lance Taylor <iant@golang.org>
Mon, 27 Jan 2014 18:18:22 +0000 (10:18 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 27 Jan 2014 18:18:22 +0000 (10:18 -0800)
commitbd997b24f7a7cdb57bb9bf02fbfacef1f59f0f89
tree8adc4fde3f6ef36658f005fd01fc809c1ad80f9b
parente1a91c5b8963e3e02c897f96218d4eae17bcb740
debug/dwarf, debug/elf: add support for reading DWARF 4 type info

In DWARF 4 the debug info for large types is put into
.debug_type sections, so that the linker can discard duplicate
info.  This change adds support for reading type units.

Another small change included here is that DWARF 3 supports
storing the byte offset of a struct field as a formData rather
than a formDwarfBlock.

R=golang-codereviews, r
CC=golang-codereviews
https://golang.org/cl/56300043
src/pkg/debug/dwarf/const.go
src/pkg/debug/dwarf/entry.go
src/pkg/debug/dwarf/open.go
src/pkg/debug/dwarf/testdata/typedef.elf4 [new file with mode: 0644]
src/pkg/debug/dwarf/type.go
src/pkg/debug/dwarf/type_test.go
src/pkg/debug/dwarf/typeunit.go [new file with mode: 0644]
src/pkg/debug/dwarf/unit.go
src/pkg/debug/elf/file.go