dwarf

package
v1.23.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Directories

Path Synopsis
Package dwarfbuilder provides a way to build DWARF sections with arbitrary contents.
Package dwarfbuilder provides a way to build DWARF sections with arbitrary contents.
Package frame contains data structures and related functions for parsing and searching through Dwarf .debug_frame data.
Package frame contains data structures and related functions for parsing and searching through Dwarf .debug_frame data.
Package leb128 provides encoders and decoders for The Little Endian Base 128 format.
Package leb128 provides encoders and decoders for The Little Endian Base 128 format.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL