stack

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 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
	RetInsnPos 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 {
	FindAddr(retAddr uint32) (init bool, funcIndex, callIndex int, stackOffset int32, retInsnPos uint32)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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