godwarf

package
v0.0.0-...-6797eda Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DebugAddr

type DebugAddr struct {
	*DebugAddrSection
	// contains filtered or unexported fields
}

DebugAddr represents a subsection of the debug_addr section with a specific base address

func (*DebugAddr) Get

func (addr *DebugAddr) Get(idx uint64) (uint64, error)

Get returns the address at index idx starting from addrBase.

type DebugAddrSection

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

DebugAddrSection represents the debug_addr section of DWARFv5. See DWARFv5 section 7.27 page 241 and following.

func ParseAddr

func ParseAddr(data []byte) *DebugAddrSection

ParseAddr parses the header of a debug_addr section.

func (*DebugAddrSection) GetSubsection

func (addr *DebugAddrSection) GetSubsection(addrBase uint64) *DebugAddr

GetSubsection returns the subsection of debug_addr starting at addrBase

Jump to

Keyboard shortcuts

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