stack

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package stack provides runtime call stack manipulation functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFrame added in v0.23.0

func InitFrame(startFuncAddr, entryFuncAddr uint32) (frame []byte)

Types

type Frame

type Frame struct {
	FuncIndex int
	RetOffset int      // Zero if information is not available.
	Locals    []uint64 // If function signatures are available.
}

func Trace

func Trace(stack []byte, textAddr uint64, textMap TextMap, funcSigs []wa.FuncType) (stacktrace []Frame, err error)

type TextMap

type TextMap interface {
	FindFunc(addr uint32) (index int, found bool)
	FindCall(retAddr uint32) (init bool, funcIndex, callIndex int, stackOffset int32, retOffset uint32)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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