On Mar 11, 2015 11:29 AM, "'Austin Clements' via golang-dev" <golan...@googlegroups.com> wrote:
> Alternatively, we could keep the types as they are and add a field to the Field struct that records the DWARF class of the value. This would be *almost* redundant with the Go type, except in these ambiguous cases (it could also be used to distinguish block from exprloc, though as of DWARF v4 there are no attributes for which those are ambiguous). This is not as clean as keeping this information in the Go type alone, but adding struct fields is specifically allowed by the Go 1 compatibility guarantee.
This seems better. We normally don't break user programs even when fixing bugs (e.g. CL 6225048, the original structure definition is definitely wrong and couldn't do anything useful at all, but we still preserve it for the sake of backward compatibility)