debug: golang.org/x/debug/local Index | Files

package local

import "golang.org/x/debug/local"

Package local provides access to a local program.

Index

Package Files

local.go

type File Uses

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.

func (*File) Close Uses

func (f *File) Close() error

func (*File) ReadAt Uses

func (f *File) ReadAt(p []byte, offset int64) (int, error)

func (*File) WriteAt Uses

func (f *File) WriteAt(p []byte, offset int64) (int, error)

type Program Uses

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.

func New Uses

func New(textFile string) (*Program, error)

New creates a new program from the specified file. The program can then be started by the Run method.

func (*Program) Breakpoint Uses

func (p *Program) Breakpoint(address uint64) ([]uint64, error)

func (*Program) BreakpointAtFunction Uses

func (p *Program) BreakpointAtFunction(name string) ([]uint64, error)

func (*Program) BreakpointAtLine Uses

func (p *Program) BreakpointAtLine(file string, line uint64) ([]uint64, error)

func (*Program) DeleteBreakpoints Uses

func (p *Program) DeleteBreakpoints(pcs []uint64) error

func (*Program) Eval Uses

func (p *Program) Eval(expr string) ([]string, error)

func (*Program) Evaluate Uses

func (p *Program) Evaluate(e string) (debug.Value, error)

func (*Program) Frames Uses

func (p *Program) Frames(count int) ([]debug.Frame, error)

func (*Program) Goroutines Uses

func (p *Program) Goroutines() ([]*debug.Goroutine, error)

func (*Program) Kill Uses

func (p *Program) Kill() (debug.Status, error)

func (*Program) MapElement Uses

func (p *Program) MapElement(m debug.Map, index uint64) (debug.Var, debug.Var, error)

func (*Program) Open Uses

func (p *Program) Open(name string, mode string) (debug.File, error)

func (*Program) Resume Uses

func (p *Program) Resume() (debug.Status, error)

func (*Program) Run Uses

func (p *Program) Run(args ...string) (debug.Status, error)

func (*Program) Stop Uses

func (p *Program) Stop() (debug.Status, error)

func (*Program) Value Uses

func (p *Program) Value(v debug.Var) (debug.Value, error)

func (*Program) VarByName Uses

func (p *Program) VarByName(name string) (debug.Var, error)

Package local imports 3 packages (graph) and is imported by 2 packages. Updated 2017-05-11. Refresh now. Tools for package owners.