From 744d53cdeb9a6727622d5efeb92c18a7976cc119 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Fri, 1 Nov 2013 11:24:11 +1100 Subject: [release-branch.go1.2] debug/dwarf: add DWARF 4 form constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ««« CL 18460043 / 08e6655618f5 debug/dwarf: add DWARF 4 form constants Some versions of clang generate DWARF 4-format attributes even when using -gdwarf-2. We don't care much about the values, but we do need to be able to parse past them. This fixes a bug in Go 1.2 rc2 reported via private mail using a near-tip version of clang. R=golang-dev, iant, dvyukov CC=golang-dev https://golang.org/cl/18460043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20470045 --- src/pkg/debug/dwarf/const.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pkg/debug/dwarf/const.go') diff --git a/src/pkg/debug/dwarf/const.go b/src/pkg/debug/dwarf/const.go index ad696dc326..9d32a0af2a 100644 --- a/src/pkg/debug/dwarf/const.go +++ b/src/pkg/debug/dwarf/const.go @@ -207,7 +207,10 @@ const ( formRef8 format = 0x14 formRefUdata format = 0x15 formIndirect format = 0x16 + formSecOffset format = 0x17 + formExprloc format = 0x18 formFlagPresent format = 0x19 + formRefSig8 format = 0x20 ) // A Tag is the classification (the type) of an Entry. -- cgit v1.3