- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for unitLength (0.14 sec)
-
src/debug/dwarf/unit.go
return u.asize } func (d *Data) parseUnits() ([]unit, error) { // Count units. nunit := 0 b := makeBuf(d, unknownFormat{}, "info", 0, d.info) for len(b.data) > 0 { len, _ := b.unitLength() if len != Offset(uint32(len)) { b.error("unit length overflow") break } b.skip(int(len)) if len > 0 { nunit++ } } if b.err != nil { return nil, b.err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 21 17:14:08 UTC 2022 - 2.7K bytes - Viewed (0) -
src/debug/dwarf/typeunit.go
} // Parse a .debug_types section. func (d *Data) parseTypes(name string, types []byte) error { b := makeBuf(d, unknownFormat{}, name, 0, types) for len(b.data) > 0 { base := b.off n, dwarf64 := b.unitLength() if n != Offset(uint32(n)) { b.error("type unit length overflow") return b.err } hdroff := b.off vers := int(b.uint16()) if vers != 4 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 3.6K bytes - Viewed (0) -
src/debug/dwarf/buf.go
case 2: return uint64(b.uint16()) case 4: return uint64(b.uint32()) case 8: return b.uint64() } b.error("unknown address size") return 0 } func (b *buf) unitLength() (length Offset, dwarf64 bool) { length = Offset(b.uint32()) if length == 0xffffffff { dwarf64 = true length = Offset(b.uint64()) } else if length >= 0xfffffff0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 21 17:14:08 UTC 2022 - 3.7K bytes - Viewed (0) -
src/debug/dwarf/line.go
// all of the header fields in r. func (r *LineReader) readHeader(compDir string) error { buf := &r.buf // Read basic header fields [DWARF2 6.2.4]. hdrOffset := buf.off unitLength, dwarf64 := buf.unitLength() r.endOffset = buf.off + unitLength if r.endOffset > buf.off+Offset(len(buf.data)) { return DecodeError{"line", hdrOffset, fmt.Sprintf("line table end %d exceeds section size %d", r.endOffset, buf.off+Offset(len(buf.data)))}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 18 19:33:30 UTC 2023 - 23.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf.go
}) d.newrefattr(die, dwarf.DW_AT_type, d.defptrto(dwhs)) } } // createUnitLength creates the initial length field with value v and update // offset of unit_length if needed. func (d *dwctxt) createUnitLength(su *loader.SymbolBuilder, v uint64) { if isDwarf64(d.linkctxt) { su.AddUint32(d.arch, 0xFFFFFFFF) } d.addDwarfAddrField(su, v) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 72.4K bytes - Viewed (0)