package protocol
import "golang.org/x/debug/server/protocol"
Package protocol defines the types used to represent calls to the debug server.
protocol.go
❖type BreakpointAtFunctionRequest struct {
Function string
}
❖type BreakpointRequest struct {
Address uint64
}
❖type BreakpointResponse struct {
PCs []uint64
}
❖type CloseRequest struct {
FD int
}
❖type CloseResponse struct {
}
❖type DeleteBreakpointsRequest struct {
PCs []uint64
}
❖type DeleteBreakpointsResponse struct {
}
❖type EvalRequest struct {
Expr string
}
❖type EvalResponse struct {
Result []string
}
❖type EvaluateRequest struct {
Expression string
}
❖type FramesRequest struct {
Count int
}
❖type GoroutinesRequest struct {
}
❖type OpenResponse struct {
FD int
}
❖type ReadAtResponse struct {
Data []byte
}
❖type ResumeRequest struct {
}
❖type RunRequest struct {
Args []string
}
❖type VarByNameRequest struct {
Name string
}
❖type VarByNameResponse struct {
Var debug.Var
}
❖type WriteAtResponse struct {
Len int
}