From 84f80fd1497a705f821c46a59075d6db43889750 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Tue, 20 May 2014 16:39:32 -0500 Subject: [PATCH] Rename Exec() to HandleResult() --- proctl/proctl_linux_amd64.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proctl/proctl_linux_amd64.go b/proctl/proctl_linux_amd64.go index ee04da61..cde9cc17 100644 --- a/proctl/proctl_linux_amd64.go +++ b/proctl/proctl_linux_amd64.go @@ -49,14 +49,14 @@ func (dbp *DebuggedProcess) Registers() (*syscall.PtraceRegs, error) { } func (dbp *DebuggedProcess) Step() error { - return dbp.Exec(syscall.PtraceSingleStep(dbp.Pid)) + return dbp.HandleResult(syscall.PtraceSingleStep(dbp.Pid)) } func (dbp *DebuggedProcess) Continue() error { - return dbp.Exec(syscall.PtraceCont(dbp.Pid, 0)) + return dbp.HandleResult(syscall.PtraceCont(dbp.Pid, 0)) } -func (dbp *DebuggedProcess) Exec(err error) error { +func (dbp *DebuggedProcess) HandleResult(err error) error { if err != nil { return err } -- GitLab