diff options
| author | Robin Eklind <r.eklind.87@gmail.com> | 2013-02-20 00:58:31 +0800 |
|---|---|---|
| committer | Shenghou Ma <minux.ma@gmail.com> | 2013-02-20 00:58:31 +0800 |
| commit | 7fdaec6c2fbed0d4a5a52644e9198b5bbb4f8c6f (patch) | |
| tree | 181b241094f44d3937956ce9d9ac71725cd4d1af /src/pkg/debug/dwarf | |
| parent | 937f91e1daadfe55aa57e3482485494a0765c849 (diff) | |
| download | go-7fdaec6c2fbed0d4a5a52644e9198b5bbb4f8c6f.tar.xz | |
debug/dwarf: add flag_present attribute encoding.
ref: http://www.dwarfstd.org/doc/DWARF4.pdf
Update #4829
R=minux.ma, iant
CC=dave, golang-dev
https://golang.org/cl/7354043
Diffstat (limited to 'src/pkg/debug/dwarf')
| -rw-r--r-- | src/pkg/debug/dwarf/const.go | 1 | ||||
| -rw-r--r-- | src/pkg/debug/dwarf/entry.go | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/pkg/debug/dwarf/const.go b/src/pkg/debug/dwarf/const.go index 918b153d07..ad696dc326 100644 --- a/src/pkg/debug/dwarf/const.go +++ b/src/pkg/debug/dwarf/const.go @@ -207,6 +207,7 @@ const ( formRef8 format = 0x14 formRefUdata format = 0x15 formIndirect format = 0x16 + formFlagPresent format = 0x19 ) // A Tag is the classification (the type) of an Entry. diff --git a/src/pkg/debug/dwarf/entry.go b/src/pkg/debug/dwarf/entry.go index 2885d8fa26..f376e40880 100644 --- a/src/pkg/debug/dwarf/entry.go +++ b/src/pkg/debug/dwarf/entry.go @@ -185,6 +185,10 @@ func (b *buf) entry(atab abbrevTable, ubase Offset) *Entry { // flag case formFlag: val = b.uint8() == 1 + case formFlagPresent: + // The attribute is implicitly indicated as present, and no value is + // encoded in the debugging information entry itself. + val = true // reference to other entry case formRefAddr: |
