stack

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2018 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 EntryFrame

func EntryFrame(entryFuncAddr uint32, entryArgs []uint64) (frame []byte)

func SetupEntryFrame

func SetupEntryFrame(stack []byte, entryFuncAddr uint32, entryArgs []uint64) (frameSize int)

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) (funcIndex, retInsnPos uint32, stackOffset int32, initialCall, ok bool)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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