func (thread *Thread) restoreRegisters() (err error) { thread.dbp.execPtraceFunc(func() { err = sys.PtraceSetRegs(thread.Id, &thread.os.registers) }) return }
func (r *Regs) SetPC(thread *Thread, pc uint64) (err error) { r.regs.SetPC(pc) thread.dbp.execPtraceFunc(func() { err = sys.PtraceSetRegs(thread.Id, r.regs) }) return }
func (t *Thread) restoreRegisters() (err error) { t.dbp.execPtraceFunc(func() { err = sys.PtraceSetRegs(t.ID, &t.os.registers) }) return }