debug

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Overview

Package debug contains DebugObjectMapper implementations.

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
}

InsnMap is an object map which stores all available function, call, trap and instruction information. The Mapper method must be used to obtain an actual ObjectMapper implementation.

func (*InsnMap) FindCall added in v0.32.0

func (m *InsnMap) FindCall(retAddr uint32) (init bool, funcIndex, callIndex int, stackOffset int32, retOffset uint32)

func (*InsnMap) PutDataBlock added in v0.34.0

func (m *InsnMap) PutDataBlock(objectOffset uint32, length int32)

func (*InsnMap) PutInsnAddr

func (m *InsnMap) PutInsnAddr(objectOffset, sourceOffset uint32)

type InsnMapping

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

Instruction mapping from machine code to WebAssembly. SourceOffset is zero if ObjectOffset 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