package dwarf

import "golang.org/x/debug/third_party/delve/dwarf"

Index

Functions

func ReadDwarfLengthVersion

func ReadDwarfLengthVersion(data []byte) (length uint64, dwarf64 bool, version uint8, byteOrder binary.ByteOrder)

ReadDwarfLengthVersion reads a DWARF length field followed by a version field

func ReadString

func ReadString(data *bytes.Buffer) (string, error)

ReadString reads a null-terminated string from data.

func ReadUintRaw

func ReadUintRaw(reader io.Reader, order binary.ByteOrder, ptrSize int) (uint64, error)

ReadUintRaw reads an integer of ptrSize bytes, with the specified byte order, from reader.

func ReadUnitVersions

func ReadUnitVersions(data []byte) map[dwarf.Offset]uint8

ReadUnitVersions reads the DWARF version of each unit in a debug_info section and returns them as a map.

func WriteUint

func WriteUint(writer io.Writer, order binary.ByteOrder, ptrSize int, data uint64) error

WriteUint writes an integer of ptrSize bytes to writer, in the specified byte order.

Source Files

parseutil.go

Directories

PathSynopsis
third_party/delve/dwarf/leb128Package leb128 provides encoders and decoders for The Little Endian Base 128 format.
third_party/delve/dwarf/loclist
third_party/delve/dwarf/op
third_party/delve/dwarf/regnum
Version
v0.0.0-20250223200816-04bfb7cc7686 (latest)
Published
Feb 23, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
1 month ago

Tools for package owners.