Versions in this module Expand all Collapse all v1 v1.1.0 Aug 16, 2018 Changes in this version + const NT_FILE + const NT_X86_XSTATE + var ErrContinueCore = errors.New("can not continue execution of core process") + var ErrShortRead = errors.New("short read") + var ErrWriteCore = errors.New("can not to core process") + type Core struct + Pid int + Threads map[int]*Thread + type ELFNotesHdr struct + Descsz uint32 + Namesz uint32 + Type uint32 + type LinuxCoreRegisters struct + Cs uint64 + Ds uint64 + Eflags uint64 + Es uint64 + Fs uint64 + Fs_base uint64 + Gs uint64 + Gs_base uint64 + Orig_rax uint64 + R10 uint64 + R11 uint64 + R12 uint64 + R13 uint64 + R14 uint64 + R15 uint64 + R8 uint64 + R9 uint64 + Rax uint64 + Rbp uint64 + Rbx uint64 + Rcx uint64 + Rdi uint64 + Rdx uint64 + Rip uint64 + Rsi uint64 + Rsp uint64 + Ss uint64 + func (r *LinuxCoreRegisters) BP() uint64 + func (r *LinuxCoreRegisters) CX() uint64 + func (r *LinuxCoreRegisters) GAddr() (uint64, bool) + func (r *LinuxCoreRegisters) Get(n int) (uint64, error) + func (r *LinuxCoreRegisters) PC() uint64 + func (r *LinuxCoreRegisters) SP() uint64 + func (r *LinuxCoreRegisters) TLS() uint64 + type LinuxCoreTimeval struct + Sec int64 + Usec int64 + type LinuxNTFile struct + type LinuxNTFileEntry struct + End uint64 + FileOfs uint64 + Start uint64 + type LinuxNTFileHdr struct + Count uint64 + PageSize uint64 + type LinuxPrPsInfo struct + Args [80]uint8 + Flag uint64 + Fname [16]uint8 + Gid uint32 + Nice int8 + Pgrp int32 + Pid int32 + Ppid int32 + Sid int32 + Sname int8 + State uint8 + Uid uint32 + Zomb uint8 + type LinuxPrStatus struct + CStime LinuxCoreTimeval + CUtime LinuxCoreTimeval + Cursig uint16 + Fpvalid int32 + Pgrp int32 + Pid int32 + Ppid int32 + Reg LinuxCoreRegisters + Sid int32 + Sighold uint64 + Siginfo LinuxSiginfo + Sigpend uint64 + Stime LinuxCoreTimeval + Utime LinuxCoreTimeval + type LinuxSiginfo struct + Code int32 + Errno int32 + Signo int32 + type Note struct + Desc interface{} + Name string + Type elf.NType + type OffsetReaderAt struct + func (r *OffsetReaderAt) ReadMemory(buf []byte, addr uintptr) (n int, err error) + type Process struct + func OpenCore(corePath, exePath string) (*Process, error) + func (p *Process) BinInfo() *proc.BinaryInfo + func (p *Process) Breakpoints() *proc.BreakpointMap + func (p *Process) CheckAndClearManualStopRequest() bool + func (p *Process) Checkpoint(string) (int, error) + func (p *Process) Checkpoints() ([]proc.Checkpoint, error) + func (p *Process) ClearBreakpoint(addr uint64) (*proc.Breakpoint, error) + func (p *Process) ClearCheckpoint(int) error + func (p *Process) ClearInternalBreakpoints() error + func (p *Process) Common() *proc.CommonProcess + func (p *Process) ContinueOnce() (proc.Thread, error) + func (p *Process) CurrentThread() proc.Thread + func (p *Process) Detach(bool) error + func (p *Process) Direction(proc.Direction) error + func (p *Process) FindThread(threadID int) (proc.Thread, bool) + func (p *Process) Pid() int + func (p *Process) Recorded() (bool, string) + func (p *Process) RequestManualStop() error + func (p *Process) Restart(string) error + func (p *Process) ResumeNotify(chan<- struct{}) + func (p *Process) SelectedGoroutine() *proc.G + func (p *Process) SetBreakpoint(addr uint64, kind proc.BreakpointKind, cond ast.Expr) (*proc.Breakpoint, error) + func (p *Process) StepInstruction() error + func (p *Process) SwitchGoroutine(gid int) error + func (p *Process) SwitchThread(tid int) error + func (p *Process) ThreadList() []proc.Thread + func (p *Process) Valid() (bool, error) + func (p *Process) When() (string, error) + type Registers struct + func (r *Registers) Save() proc.SavedRegisters + func (r *Registers) Slice() []proc.Register + type SplicedMemory struct + func (r *SplicedMemory) Add(reader proc.MemoryReader, off, length uintptr) + func (r *SplicedMemory) ReadMemory(buf []byte, addr uintptr) (n int, err error) + type Thread struct + func (t *Thread) Arch() proc.Arch + func (t *Thread) BinInfo() *proc.BinaryInfo + func (t *Thread) Blocked() bool + func (t *Thread) Breakpoint() proc.BreakpointState + func (t *Thread) Common() *proc.CommonThread + func (t *Thread) Location() (*proc.Location, error) + func (t *Thread) Registers(floatingPoint bool) (proc.Registers, error) + func (t *Thread) RestoreRegisters(proc.SavedRegisters) error + func (t *Thread) SetCurrentBreakpoint() error + func (t *Thread) SetDX(uint64) error + func (t *Thread) SetPC(uint64) error + func (t *Thread) SetSP(uint64) error + func (t *Thread) StepInstruction() error + func (t *Thread) ThreadID() int + func (thread *Thread) ReadMemory(data []byte, addr uintptr) (n int, err error) + func (thread *Thread) WriteMemory(addr uintptr, data []byte) (int, error)