aboutsummaryrefslogtreecommitdiff
path: root/src/debug/dwarf
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/dwarf')
-rw-r--r--src/debug/dwarf/entry.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/debug/dwarf/entry.go b/src/debug/dwarf/entry.go
index 2742ae0eab..5a21da0e9e 100644
--- a/src/debug/dwarf/entry.go
+++ b/src/debug/dwarf/entry.go
@@ -102,6 +102,25 @@ type Entry struct {
}
// A Field is a single attribute/value pair in an Entry.
+//
+// A value can be one of several "attribute classes" defined by DWARF.
+// The Go types corresponding to each class are:
+//
+// Class Go type
+// ----- -------
+// address uint64
+// block []byte
+// constant int64
+// flag bool
+// reference
+// to info dwarf.Offset (for use with Reader.Seek)
+// to type unit uint64 (type signature)
+// string string
+// exprloc []byte
+// lineptr int64
+// loclistptr int64
+// macptr int64
+// rangelistptr int64
type Field struct {
Attr Attr
Val interface{}