]> Cypherpunks repositories - gostls13.git/commit
debug/dwarf: document DWARF class -> Go type mapping
authorAustin Clements <austin@google.com>
Fri, 6 Mar 2015 20:04:17 +0000 (15:04 -0500)
committerAustin Clements <austin@google.com>
Fri, 10 Apr 2015 17:59:51 +0000 (17:59 +0000)
commit253ad67b3458ca640bc3d56a278b94b0823fec59
treef438b77af97be0db0d4518b35ac1cf0bd5f272e1
parentfaa9d1eca9368fee5bffc016dd465571db050d5d
debug/dwarf: document DWARF class -> Go type mapping

Currently, the only way to know the Go type of an attribute of some
DWARF attribute class was to read the dwarf package code (or
experiment).  This makes it hard to go from the DWARF specification to
writing code that uses the dwarf package.

Fix this by adding a table to the documentation comment of the Field
type that gives the correspondence between DWARF attribute classes and
Go types.

Change-Id: I57c678a551fa1eb46f8207085d5a53d44985e3e7
Reviewed-on: https://go-review.googlesource.com/7280
Reviewed-by: Rob Pike <r@golang.org>
Reviewed-by: Nigel Tao <nigeltao@golang.org>
src/debug/dwarf/entry.go