Versions in this module Expand all Collapse all v1 v1.0.0 Feb 19, 2018 Changes in this version + const StatusRunning — linux/amd64 + const StatusSleeping — linux/amd64 + const StatusTraceStop — linux/amd64 + const StatusTraceStopT — linux/amd64 + const StatusZombie — linux/amd64 + var ErrContinueThread = fmt.Errorf("could not continue thread") — darwin/amd64 + var ErrShortRead = errors.New("short read") — windows/amd64 + func PtraceAttach(pid int) error — darwin/amd64, linux/amd64 + func PtraceCont(tid, sig int) error — darwin/amd64, linux/amd64 + func PtraceDetach(tid, sig int) error — darwin/amd64, linux/amd64 + func PtraceGetRegset(tid int) (regset proc.LinuxX86Xstate, err error) — linux/amd64 + func PtracePeekUser(tid int, off uintptr) (uintptr, error) — linux/amd64 + func PtracePokeUser(tid int, off, addr uintptr) error — linux/amd64 + func PtraceSingleStep(tid int) error — darwin/amd64, linux/amd64 + type OSProcessDetails struct — darwin/amd64, linux/amd64, windows/amd64 + type OSSpecificDetails struct — darwin/amd64, linux/amd64, windows/amd64 + type Process struct + func Attach(pid int) (*Process, error) + func Launch(cmd []string, wd string) (*Process, error) + func New(pid int) *Process + func (dbp *Process) AllGCache() *[]*proc.G + func (dbp *Process) BinInfo() *proc.BinaryInfo + func (dbp *Process) Breakpoints() *proc.BreakpointMap + func (dbp *Process) CheckAndClearManualStopRequest() bool + func (dbp *Process) Checkpoint(string) (int, error) + func (dbp *Process) Checkpoints() ([]proc.Checkpoint, error) + func (dbp *Process) ClearBreakpoint(addr uint64) (*proc.Breakpoint, error) + func (dbp *Process) ClearCheckpoint(int) error + func (dbp *Process) ClearInternalBreakpoints() error + func (dbp *Process) ContinueOnce() (proc.Thread, error) + func (dbp *Process) CurrentThread() proc.Thread + func (dbp *Process) Detach(kill bool) (err error) + func (dbp *Process) Direction(proc.Direction) error + func (dbp *Process) Exited() bool + func (dbp *Process) FindBreakpoint(pc uint64) (*proc.Breakpoint, bool) + func (dbp *Process) FindThread(threadID int) (proc.Thread, bool) + func (dbp *Process) Halt() (err error) + func (dbp *Process) Kill() (err error) + func (dbp *Process) Kill() error + func (dbp *Process) LoadInformation(path string) error + func (dbp *Process) Pid() int + func (dbp *Process) Recorded() (bool, string) + func (dbp *Process) RequestManualStop() error + func (dbp *Process) Restart(string) error + func (dbp *Process) ResumeNotify(ch chan<- struct{}) + func (dbp *Process) SelectedGoroutine() *proc.G + func (dbp *Process) SetBreakpoint(addr uint64, kind proc.BreakpointKind, cond ast.Expr) (*proc.Breakpoint, error) + func (dbp *Process) StepInstruction() (err error) + func (dbp *Process) SwitchGoroutine(gid int) error + func (dbp *Process) SwitchThread(tid int) error + func (dbp *Process) ThreadList() []proc.Thread + func (dbp *Process) When() (string, error) + type Regs struct — darwin/amd64, linux/amd64, windows/amd64 + func (r *Regs) BP() uint64 + func (r *Regs) CX() uint64 + func (r *Regs) GAddr() (uint64, bool) + func (r *Regs) Get(n int) (uint64, error) + func (r *Regs) PC() uint64 + func (r *Regs) SP() uint64 + func (r *Regs) SetPC(t proc.Thread, pc uint64) (err error) + func (r *Regs) SetPC(t proc.Thread, pc uint64) error + func (r *Regs) Slice() []proc.Register + func (r *Regs) TLS() uint64 + type Thread struct + CurrentBreakpoint proc.BreakpointState + ID int + Status *WaitStatus + func (t *Thread) Blocked() bool + func (t *Thread) PC() (uint64, error) + func (t *Thread) ReadMemory(buf []byte, addr uintptr) (int, error) + func (t *Thread) ReadMemory(data []byte, addr uintptr) (n int, err error) + func (t *Thread) Registers(floatingPoint bool) (proc.Registers, error) + func (t *Thread) WriteMemory(addr uintptr, data []byte) (int, error) + func (t *Thread) WriteMemory(addr uintptr, data []byte) (written int, err error) + func (th *Thread) Breakpoint() proc.BreakpointState + func (th *Thread) ThreadID() int + func (thread *Thread) Arch() proc.Arch + func (thread *Thread) BinInfo() *proc.BinaryInfo + func (thread *Thread) ClearBreakpoint(bp *proc.Breakpoint) error + func (thread *Thread) Continue() error + func (thread *Thread) Halt() (err error) + func (thread *Thread) Location() (*proc.Location, error) + func (thread *Thread) SetCurrentBreakpoint() error + func (thread *Thread) SetPC(pc uint64) error + func (thread *Thread) StepInstruction() (err error) + func (thread *Thread) Stopped() bool + type WaitStatus sys.WaitStatus — darwin/amd64, linux/amd64, windows/amd64 v1.0.0-rc.2 Oct 16, 2017 v1.0.0-rc.1 May 6, 2017