wag: github.com/tsavola/wag/object/stack Index | Files | Directories

package stack

import "github.com/tsavola/wag/object/stack"

Package stack provides runtime call stack manipulation functions.

Index

Package Files

entry.go stacktrace.go

func InitFrame Uses

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

type Frame Uses

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

func Trace Uses

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

type TextMap Uses

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

Directories

PathSynopsis
stacktrace

Package stack imports 6 packages (graph) and is imported by 7 packages. Updated 2020-01-28. Refresh now. Tools for package owners.