stack

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: BSD-3-Clause Imports: 6 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package stack provides runtime call stack manipulation functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFrame

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