stack

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: BSD-3-Clause Imports: 4 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 int32, entryArgs []uint64) (frame []byte)

func SetupEntryFrame

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

Types

type Frame

type Frame struct {
	FuncIndex    int
	RetInsnIndex int // Zero if information is not available.
}

func Trace

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

type TextMap

type TextMap interface {
	FindAddr(retAddr int32) (funcIndex, retInsnIndex, 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