package godwarf

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

Index

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

Source Files

addr.go

Version
v0.0.0-20250406003339-6797edac53ce (latest)
Published
Apr 6, 2025
Platform
windows/amd64
Imports
4 packages
Last checked
10 hours ago

Tools for package owners.