Documentation ¶
Overview ¶
Package remote provides remote access to a debugproxy server.
Index ¶
- Variables
- type File
- type Program
- func (p *Program) Breakpoint(address uint64) ([]uint64, error)
- func (p *Program) BreakpointAtFunction(name string) ([]uint64, error)
- func (p *Program) BreakpointAtLine(file string, line uint64) ([]uint64, error)
- func (p *Program) DeleteBreakpoints(pcs []uint64) error
- func (p *Program) Eval(expr string) ([]string, error)
- func (p *Program) Evaluate(e string) (debug.Value, error)
- func (p *Program) Frames(count int) ([]debug.Frame, error)
- func (p *Program) Goroutines() ([]*debug.Goroutine, error)
- func (p *Program) Kill() (debug.Status, error)
- func (p *Program) MapElement(m debug.Map, index uint64) (debug.Var, debug.Var, error)
- func (p *Program) Open(name string, mode string) (debug.File, error)
- func (p *Program) Resume() (debug.Status, error)
- func (p *Program) Run(args ...string) (debug.Status, error)
- func (p *Program) Stop() (debug.Status, error)
- func (p *Program) Value(v debug.Var) (debug.Value, error)
- func (p *Program) VarByName(name string) (debug.Var, error)
Constants ¶
This section is empty.
Variables ¶
var DebugproxyCmd = "debugproxy"
DebugproxyCmd is the path to the debugproxy command. It is a variable in case the default value, "debugproxy", is not in the $PATH.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File implements the debug.File interface, providing access to file-like resources associated with the target program.
type Program ¶
type Program struct {
// contains filtered or unexported fields
}
Program implements the debug.Program interface. Through that interface it provides access to a program being debugged on a possibly remote machine by communicating with a debugproxy adjacent to the target program.
func New ¶
New connects to the specified host using SSH, starts DebugproxyCmd there, and creates a new program from the specified file. The program can then be started by the Run method.