import "github.com/tsavola/wag/object/stack"
Package stack provides runtime call stack manipulation functions.
type Frame struct { FuncIndex int RetOffset int // Zero if information is not available. Locals []uint64 // If function signatures are available. }
func Trace(stack []byte, textAddr uint64, textMap TextMap, funcSigs []wa.FuncType) (stacktrace []Frame, err error)
type TextMap interface { FindFunc(addr uint32) (index int, found bool) FindCall(retAddr uint32) (init bool, funcIndex, callIndex int, stackOffset int32, retOffset uint32) }
Path | Synopsis |
---|---|
stacktrace |
Package stack imports 6 packages (graph) and is imported by 1 packages. Updated 2021-01-25. Refresh now. Tools for package owners.