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 ¶
- func Attach(config pvz.VZVirtualMachineConfiguration, stub objectivec.IObject) error
- func AttachForwarding(config pvz.VZVirtualMachineConfiguration, stub unsafe.Pointer) error
- func AttachGDB(config pvz.VZVirtualMachineConfiguration, port uint16, listenAll bool) error
- func BuildForCoprocessor(stub pvz.VZDebugStubConfiguration) objectivec.IObject
- func BuildForVM(stub pvz.VZDebugStubConfiguration, vm objectivec.IObject) objectivec.IObject
- func Clear(config pvz.VZVirtualMachineConfiguration)
- func NewDebugStubConfiguration() pvz.VZDebugStubConfiguration
- func NewForwardingDebugStubConfiguration(stub unsafe.Pointer) pvz.VZForwardingDebugStubConfiguration
- func NewGDBDebugStubConfiguration(port uint16, listenAll bool) pvz.VZGDBDebugStubConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Attach ¶
func Attach(config pvz.VZVirtualMachineConfiguration, stub objectivec.IObject) error
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 ¶
func BuildForVM(stub pvz.VZDebugStubConfiguration, vm objectivec.IObject) objectivec.IObject
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.