yield

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package yield records the current yielded state of a coprocessor. In particualar, it records the list of local variables visible at the current yield point

It also handles the strobed viewed of the coprocessor and builds the strobed local variables list. Strobing allows the developer to see local variables when the emulation is running (see govern pacakge).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Addr           uint32
	Reason         coprocessor.CoProcYieldType
	LocalVariables []*dwarf.SourceVariableLocal

	Strobe                bool
	StrobeAddr            uint32
	StrobedLocalVariables []*dwarf.SourceVariableLocal
	StrobeTicker          *time.Ticker
}

State records the most recent yield

func (State) Cmp

func (yld State) Cmp(w State) bool

Cmp returns true if two YieldStates are equal

func (State) LocalVariableView added in v0.30.0

func (yld State) LocalVariableView(state govern.State) (uint32, []*dwarf.SourceVariableLocal)

LocalVariableView returns either the LocalVariables or StrobedLocalVariables array depending on the running state and whether a strobe is active

Jump to

Keyboard shortcuts

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