loclist

package
v0.0.0-...-21f7590 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	LowPC, HighPC uint64
	Instr         []byte
}

Entry represents a single entry in the loclist section.

func (*Entry) BaseAddressSelection

func (e *Entry) BaseAddressSelection() bool

BaseAddressSelection returns true if entry.highpc should be used as the base address for subsequent entries.

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader parses and presents DWARF loclist information.

func New

func New(data []byte, ptrSz int) *Reader

New returns an initialized loclist Reader.

func (*Reader) Empty

func (rdr *Reader) Empty() bool

Empty returns true if this reader has no data.

func (*Reader) Next

func (rdr *Reader) Next(e *Entry) bool

Next advances the reader to the next loclist entry, returning the entry and true if successful, or nil, false if not.

func (*Reader) Seek

func (rdr *Reader) Seek(off int)

Seek moves the data pointer to the specified offset.

Jump to

Keyboard shortcuts

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