debugpoint

package
v2.0.0-alpha.35 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

Index resolves ordered debug points globally or within a function. It must not be copied after its first lookup.

func New

func New(points []bytecode.DebugPoint) (Index, error)

New creates an index over a validated defensive copy of points.

func (*Index) NearestBeforeOrAt

func (i *Index) NearestBeforeOrAt(pc int) *bytecode.DebugPoint

NearestBeforeOrAt returns the nearest global point at or before pc.

func (*Index) NearestBeforeOrAtInFunction

func (i *Index) NearestBeforeOrAtInFunction(functionID, pc int) *bytecode.DebugPoint

NearestBeforeOrAtInFunction returns the nearest point in functionID at or before pc.

func (*Index) PointByID

func (i *Index) PointByID(id bytecode.DebugPointID) *bytecode.DebugPoint

PointByID returns the point with id, when one exists.

func (*Index) PointForPC

func (i *Index) PointForPC(pc int) *bytecode.DebugPoint

PointForPC returns the point at pc, when one exists.

func (*Index) Points

func (i *Index) Points() []bytecode.DebugPoint

Points returns all debug points in PC order.

func (*Index) PointsInFunction

func (i *Index) PointsInFunction(functionID int) []*bytecode.DebugPoint

PointsInFunction returns the debug points in functionID ordered by PC.

Jump to

Keyboard shortcuts

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