debug

package
v0.15.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2019 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InsnMap

type InsnMap struct {
	object.CallMap
	Insns []InsnMapping
	// contains filtered or unexported fields
}

InsnMap implements compile.ObjectMapper. It stores function addresses, call sites and instruction positions.

The WebAssembly module must be loaded using InsnMap's pass-through reader, or the source positions will be zero.

func (*InsnMap) FindAddr added in v0.8.0

func (m *InsnMap) FindAddr(retAddr uint32) (funcIndex, callIndex, retInsnPos uint32, stackOffset int32, initial, ok bool)

func (*InsnMap) InitObjectMap

func (m *InsnMap) InitObjectMap(numImportFuncs, numOtherFuncs int)

func (*InsnMap) PutDataBlock added in v0.8.0

func (m *InsnMap) PutDataBlock(objectPos uint32, blockLen int32)

func (*InsnMap) PutInsnAddr

func (m *InsnMap) PutInsnAddr(objectPos uint32)

func (*InsnMap) Reader added in v0.9.0

func (m *InsnMap) Reader(input reader.R) reader.R

Reader gets the pass-through reader. It must not be wrapped in a buffered reader (the input reader can be).

type InsnMapping

type InsnMapping struct {
	ObjectPos uint32 // Machine code offset in bytes.
	SourcePos uint32 // WebAssembly code offset in bytes.
	BlockLen  int32  // Length of data block (when SourcePos is 0).
}

Instruction mapping from machine code to WebAssembly. SourcePos is zero if ObjectPos contains non-executable data interleaved with the code.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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