debugstub

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package debugstub provides debug stub configuration helpers.

It is intended to wrap the private debug stub configuration types used for GDB-style remote debugging, forwarding debug stubs, and VM- or coprocessor-specific debug endpoints.

The package should expose:

Portable configuration builders
Helpers to attach debug stubs to VM configurations
Introspection helpers for running VMs

This package is focused on configuration and inspection, not on speaking the remote debugger protocol itself.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

Attach sets a debug stub on a VM configuration.

func AttachForwarding

func AttachForwarding(config pvz.VZVirtualMachineConfiguration, stub unsafe.Pointer) error

AttachForwarding builds a forwarding debug stub and attaches it to a VM configuration.

func AttachGDB

func AttachGDB(config pvz.VZVirtualMachineConfiguration, port uint16, listenAll bool) error

AttachGDB builds a GDB debug stub and attaches it to a VM configuration.

func BuildForCoprocessor

func BuildForCoprocessor(stub pvz.VZDebugStubConfiguration) objectivec.IObject

BuildForCoprocessor asks a debug-stub configuration to create a coprocessor stub object.

func BuildForVM

BuildForVM asks a debug-stub configuration to create a VM stub object.

func Clear

func Clear(config pvz.VZVirtualMachineConfiguration)

Clear removes any debug stub from a VM configuration.

func NewDebugStubConfiguration

func NewDebugStubConfiguration() pvz.VZDebugStubConfiguration

NewDebugStubConfiguration creates the base debug-stub configuration.

func NewForwardingDebugStubConfiguration

func NewForwardingDebugStubConfiguration(stub unsafe.Pointer) pvz.VZForwardingDebugStubConfiguration

NewForwardingDebugStubConfiguration creates a forwarding debug-stub configuration.

func NewGDBDebugStubConfiguration

func NewGDBDebugStubConfiguration(port uint16, listenAll bool) pvz.VZGDBDebugStubConfiguration

NewGDBDebugStubConfiguration creates a GDB debug-stub configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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