Documentation ¶
Overview ¶
Package server provides RPC access to a local program being debugged. It is the remote end of the client implementation of the Program interface.
Index ¶
- type Printer
- type Server
- func (s *Server) Breakpoint(req *protocol.BreakpointRequest, resp *protocol.BreakpointResponse) error
- func (s *Server) BreakpointAtFunction(req *protocol.BreakpointAtFunctionRequest, resp *protocol.BreakpointResponse) error
- func (s *Server) BreakpointAtLine(req *protocol.BreakpointAtLineRequest, resp *protocol.BreakpointResponse) error
- func (s *Server) Close(req *protocol.CloseRequest, resp *protocol.CloseResponse) error
- func (s *Server) DeleteBreakpoints(req *protocol.DeleteBreakpointsRequest, ...) error
- func (s *Server) Eval(req *protocol.EvalRequest, resp *protocol.EvalResponse) error
- func (s *Server) Evaluate(req *protocol.EvaluateRequest, resp *protocol.EvaluateResponse) error
- func (s *Server) Frames(req *protocol.FramesRequest, resp *protocol.FramesResponse) error
- func (s *Server) Goroutines(req *protocol.GoroutinesRequest, resp *protocol.GoroutinesResponse) error
- func (s *Server) MapElement(req *protocol.MapElementRequest, resp *protocol.MapElementResponse) error
- func (s *Server) Open(req *protocol.OpenRequest, resp *protocol.OpenResponse) error
- func (s *Server) ReadAt(req *protocol.ReadAtRequest, resp *protocol.ReadAtResponse) error
- func (s *Server) Resume(req *protocol.ResumeRequest, resp *protocol.ResumeResponse) error
- func (s *Server) Run(req *protocol.RunRequest, resp *protocol.RunResponse) error
- func (s *Server) Value(req *protocol.ValueRequest, resp *protocol.ValueResponse) error
- func (s *Server) VarByName(req *protocol.VarByNameRequest, resp *protocol.VarByNameResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
A Printer pretty-prints values in the target address space. It can be reused after each printing operation to avoid unnecessary allocations. However, it is not safe for concurrent access.
func NewPrinter ¶
NewPrinter returns a printer that can use the Server to access and print values of the specified architecture described by the provided DWARF data.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func New ¶
New parses the executable and builds local data structures for answering requests. It returns a Server ready to serve requests about the executable.
func (*Server) Breakpoint ¶
func (s *Server) Breakpoint(req *protocol.BreakpointRequest, resp *protocol.BreakpointResponse) error
func (*Server) BreakpointAtFunction ¶
func (s *Server) BreakpointAtFunction(req *protocol.BreakpointAtFunctionRequest, resp *protocol.BreakpointResponse) error
func (*Server) BreakpointAtLine ¶
func (s *Server) BreakpointAtLine(req *protocol.BreakpointAtLineRequest, resp *protocol.BreakpointResponse) error
func (*Server) Close ¶
func (s *Server) Close(req *protocol.CloseRequest, resp *protocol.CloseResponse) error
func (*Server) DeleteBreakpoints ¶
func (s *Server) DeleteBreakpoints(req *protocol.DeleteBreakpointsRequest, resp *protocol.DeleteBreakpointsResponse) error
func (*Server) Eval ¶
func (s *Server) Eval(req *protocol.EvalRequest, resp *protocol.EvalResponse) error
func (*Server) Evaluate ¶
func (s *Server) Evaluate(req *protocol.EvaluateRequest, resp *protocol.EvaluateResponse) error
func (*Server) Frames ¶
func (s *Server) Frames(req *protocol.FramesRequest, resp *protocol.FramesResponse) error
func (*Server) Goroutines ¶
func (s *Server) Goroutines(req *protocol.GoroutinesRequest, resp *protocol.GoroutinesResponse) error
func (*Server) MapElement ¶
func (s *Server) MapElement(req *protocol.MapElementRequest, resp *protocol.MapElementResponse) error
func (*Server) Open ¶
func (s *Server) Open(req *protocol.OpenRequest, resp *protocol.OpenResponse) error
func (*Server) ReadAt ¶
func (s *Server) ReadAt(req *protocol.ReadAtRequest, resp *protocol.ReadAtResponse) error
func (*Server) Resume ¶
func (s *Server) Resume(req *protocol.ResumeRequest, resp *protocol.ResumeResponse) error
func (*Server) Run ¶
func (s *Server) Run(req *protocol.RunRequest, resp *protocol.RunResponse) error
func (*Server) Value ¶
func (s *Server) Value(req *protocol.ValueRequest, resp *protocol.ValueResponse) error
func (*Server) VarByName ¶
func (s *Server) VarByName(req *protocol.VarByNameRequest, resp *protocol.VarByNameResponse) error