rpc

package
v0.10.0-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EvalSymbolArgs

type EvalSymbolArgs struct {
	Scope  api.EvalScope
	Symbol string
}

type FindLocationArgs

type FindLocationArgs struct {
	Scope api.EvalScope
	Loc   string
}

type RPCClient

type RPCClient struct {
	// contains filtered or unexported fields
}

Client is a RPC service.Client.

func NewClient

func NewClient(addr string) *RPCClient

NewClient creates a new RPCClient.

func (*RPCClient) AttachedToExistingProcess

func (c *RPCClient) AttachedToExistingProcess() bool

func (*RPCClient) ClearBreakpoint

func (c *RPCClient) ClearBreakpoint(id int) (*api.Breakpoint, error)

func (*RPCClient) Continue

func (c *RPCClient) Continue() <-chan *api.DebuggerState

func (*RPCClient) CreateBreakpoint

func (c *RPCClient) CreateBreakpoint(breakPoint *api.Breakpoint) (*api.Breakpoint, error)

func (*RPCClient) Detach

func (c *RPCClient) Detach(kill bool) error

func (*RPCClient) EvalVariable

func (c *RPCClient) EvalVariable(scope api.EvalScope, symbol string) (*api.Variable, error)

func (*RPCClient) FindLocation

func (c *RPCClient) FindLocation(scope api.EvalScope, loc string) ([]api.Location, error)

func (*RPCClient) GetBreakpoint

func (c *RPCClient) GetBreakpoint(id int) (*api.Breakpoint, error)

func (*RPCClient) GetState

func (c *RPCClient) GetState() (*api.DebuggerState, error)

func (*RPCClient) GetThread

func (c *RPCClient) GetThread(id int) (*api.Thread, error)

func (*RPCClient) Halt

func (c *RPCClient) Halt() (*api.DebuggerState, error)

func (*RPCClient) ListBreakpoints

func (c *RPCClient) ListBreakpoints() ([]*api.Breakpoint, error)

func (*RPCClient) ListFunctionArgs

func (c *RPCClient) ListFunctionArgs(scope api.EvalScope) ([]api.Variable, error)

func (*RPCClient) ListFunctions

func (c *RPCClient) ListFunctions(filter string) ([]string, error)

func (*RPCClient) ListGoroutines

func (c *RPCClient) ListGoroutines() ([]*api.Goroutine, error)

func (*RPCClient) ListLocalVariables

func (c *RPCClient) ListLocalVariables(scope api.EvalScope) ([]api.Variable, error)

func (*RPCClient) ListPackageVariables

func (c *RPCClient) ListPackageVariables(filter string) ([]api.Variable, error)

func (*RPCClient) ListPackageVariablesFor

func (c *RPCClient) ListPackageVariablesFor(threadID int, filter string) ([]api.Variable, error)

func (*RPCClient) ListRegisters

func (c *RPCClient) ListRegisters() (string, error)

func (*RPCClient) ListSources

func (c *RPCClient) ListSources(filter string) ([]string, error)

func (*RPCClient) ListThreads

func (c *RPCClient) ListThreads() ([]*api.Thread, error)

func (*RPCClient) Next

func (c *RPCClient) Next() (*api.DebuggerState, error)

func (*RPCClient) ProcessPid

func (c *RPCClient) ProcessPid() int

func (*RPCClient) Restart

func (c *RPCClient) Restart() error

func (*RPCClient) SetVariable

func (c *RPCClient) SetVariable(scope api.EvalScope, symbol, value string) error

func (*RPCClient) Stacktrace

func (c *RPCClient) Stacktrace(goroutineId, depth int, full bool) ([]api.Stackframe, error)

func (*RPCClient) Step

func (c *RPCClient) Step() (*api.DebuggerState, error)

func (*RPCClient) SwitchGoroutine

func (c *RPCClient) SwitchGoroutine(goroutineID int) (*api.DebuggerState, error)

func (*RPCClient) SwitchThread

func (c *RPCClient) SwitchThread(threadID int) (*api.DebuggerState, error)

type RPCServer

type RPCServer struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(config *service.Config, logEnabled bool) *RPCServer

NewServer creates a new RPCServer.

func (*RPCServer) AttachedToExistingProcess

func (c *RPCServer) AttachedToExistingProcess(arg interface{}, answer *bool) error

func (*RPCServer) ClearBreakpoint

func (s *RPCServer) ClearBreakpoint(id int, breakpoint *api.Breakpoint) error

func (*RPCServer) Command

func (s *RPCServer) Command(command *api.DebuggerCommand, state *api.DebuggerState) error

func (*RPCServer) CreateBreakpoint

func (s *RPCServer) CreateBreakpoint(bp, newBreakpoint *api.Breakpoint) error

func (*RPCServer) Detach

func (s *RPCServer) Detach(kill bool, ret *int) error

func (*RPCServer) EvalSymbol

func (s *RPCServer) EvalSymbol(args EvalSymbolArgs, variable *api.Variable) error

func (*RPCServer) FindLocation

func (c *RPCServer) FindLocation(args FindLocationArgs, answer *[]api.Location) error

func (*RPCServer) GetBreakpoint

func (s *RPCServer) GetBreakpoint(id int, breakpoint *api.Breakpoint) error

func (*RPCServer) GetThread

func (s *RPCServer) GetThread(id int, thread *api.Thread) error

func (*RPCServer) ListBreakpoints

func (s *RPCServer) ListBreakpoints(arg interface{}, breakpoints *[]*api.Breakpoint) error

func (*RPCServer) ListFunctionArgs

func (s *RPCServer) ListFunctionArgs(scope api.EvalScope, variables *[]api.Variable) error

func (*RPCServer) ListFunctions

func (s *RPCServer) ListFunctions(filter string, funcs *[]string) error

func (*RPCServer) ListGoroutines

func (s *RPCServer) ListGoroutines(arg interface{}, goroutines *[]*api.Goroutine) error

func (*RPCServer) ListLocalVars

func (s *RPCServer) ListLocalVars(scope api.EvalScope, variables *[]api.Variable) error

func (*RPCServer) ListPackageVars

func (s *RPCServer) ListPackageVars(filter string, variables *[]api.Variable) error

func (*RPCServer) ListRegisters

func (s *RPCServer) ListRegisters(arg interface{}, registers *string) error

func (*RPCServer) ListSources

func (s *RPCServer) ListSources(filter string, sources *[]string) error

func (*RPCServer) ListThreadPackageVars

func (s *RPCServer) ListThreadPackageVars(args *ThreadListArgs, variables *[]api.Variable) error

func (*RPCServer) ListThreads

func (s *RPCServer) ListThreads(arg interface{}, threads *[]*api.Thread) error

func (*RPCServer) ProcessPid

func (s *RPCServer) ProcessPid(arg1 interface{}, pid *int) error

func (*RPCServer) Restart

func (s *RPCServer) Restart(arg1 interface{}, arg2 *int) error

func (*RPCServer) Run

func (s *RPCServer) Run() error

Run starts a debugger and exposes it with an HTTP server. The debugger itself can be stopped with the `detach` API. Run blocks until the HTTP server stops.

func (*RPCServer) SetSymbol

func (s *RPCServer) SetSymbol(args SetSymbolArgs, unused *int) error

func (*RPCServer) StacktraceGoroutine

func (s *RPCServer) StacktraceGoroutine(args *StacktraceGoroutineArgs, locations *[]api.Stackframe) error

func (*RPCServer) State

func (s *RPCServer) State(arg interface{}, state *api.DebuggerState) error

func (*RPCServer) Stop

func (s *RPCServer) Stop(kill bool) error

Stop detaches from the debugger and waits for it to stop.

type SetSymbolArgs

type SetSymbolArgs struct {
	Scope  api.EvalScope
	Symbol string
	Value  string
}

type StacktraceGoroutineArgs

type StacktraceGoroutineArgs struct {
	Id    int
	Depth int
	Full  bool
}

type ThreadListArgs

type ThreadListArgs struct {
	Id     int
	Filter string
}

Jump to

Keyboard shortcuts

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