responses

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: GPL-3.0 Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package responses holds the shared data types of the debug server's JSON responses: the server serializes them as the data field of its response envelopes and the debugger client decodes them. Types used by only one side (and the envelope and event line shapes, which each side models itself) stay out; this package is the shared vocabulary, nothing more.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BreakInfo

type BreakInfo struct {
	Addr   uint32 `json:"addr"`
	Width  int    `json:"width"`
	Op     string `json:"op"`
	Val    uint32 `json:"val"`
	HasVal bool   `json:"has_val"`
}

BreakInfo is one break list entry. Val is meaningful only when HasVal is set (comparison operators).

type BreakList

type BreakList struct {
	Breaks []BreakInfo `json:"breaks"`
}

BreakList is the break list response.

type CandidateInfo

type CandidateInfo struct {
	Addr uint32 `json:"addr"`
	Cur  uint32 `json:"cur"`
	Base uint32 `json:"base"`
}

CandidateInfo is one surviving search candidate. Cur is the live value at list time and Base is the current comparison baseline.

type CandidateList

type CandidateList struct {
	Width      int             `json:"width"`
	Total      int             `json:"total"`
	Offset     int             `json:"offset"`
	Candidates []CandidateInfo `json:"candidates"`
}

CandidateList is the list command response. Candidates holds up to the requested count in address order starting at Offset; Total is the full surviving count.

type PinInfo added in v0.4.0

type PinInfo struct {
	Addr uint32 `json:"addr"`
	Data string `json:"data"`
	Hits uint64 `json:"hits"`
}

PinInfo is one pin list entry. Data is the held bytes hex encoded, the same encoding the pin command takes. Hits counts the frames that ended with the location changed, so it rises by at most one per frame and counts frames rather than writes.

type PinList added in v0.4.0

type PinList struct {
	Pins []PinInfo `json:"pins"`
}

PinList is the pin list response.

type ReadResult

type ReadResult struct {
	Addr uint32 `json:"addr"`
	Data string `json:"data"`
}

ReadResult is the read command response. Data is the bytes hex encoded.

type RegionInfo

type RegionInfo struct {
	Name  string `json:"name"`
	Start uint32 `json:"start"`
	End   uint32 `json:"end"`
	Size  uint32 `json:"size"`
}

RegionInfo is one region list entry. Start and End bound the canonical range inclusive; Size is in bytes. Addresses in the protocol are canonical only; the machine's bus handles all decode internally.

type RegionList

type RegionList struct {
	Regions []RegionInfo `json:"regions"`
}

RegionList is the regions command response.

type StateResult

type StateResult struct {
	Paused       bool   `json:"paused"`
	Frame        uint64 `json:"frame"`
	Width        int    `json:"width"`
	SearchActive bool   `json:"search_active"`
	Candidates   int    `json:"candidates"`
}

StateResult is the state command response. Width is the search value width setting, which applies whether or not a search is active.

type WatchInfo

type WatchInfo struct {
	Addr  uint32 `json:"addr"`
	Width int    `json:"width"`
	Value uint32 `json:"value"`
	Valid bool   `json:"valid"`
}

WatchInfo is one watch list entry. Value is the last value read; Valid is false until the first between-frames read has seeded it.

type WatchList

type WatchList struct {
	Watches []WatchInfo `json:"watches"`
}

WatchList is the watch list response.

Jump to

Keyboard shortcuts

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