migrate to go.sys subrepository

As of go version 1.4 the standard library syscall package is "locked
down" and code outside of the standard library is recommended to migrate
to the go.sys subrepository.

Reference: https://golang.org/s/go1.4-syscall
This commit is contained in:
Paul Sbarra
2015-01-25 17:16:18 -06:00
committed by Hashrocket Workstation
parent 0d08380555
commit 58de1f7c85
6 changed files with 37 additions and 35 deletions

View File

@ -3,7 +3,7 @@ package proctl
import (
"encoding/binary"
"fmt"
"syscall"
sys "golang.org/x/sys/unix"
"github.com/derekparker/delve/dwarf/frame"
)
@ -13,7 +13,7 @@ import (
type ThreadContext struct {
Id int
Process *DebuggedProcess
Status *syscall.WaitStatus
Status *sys.WaitStatus
}
type Registers interface {
@ -91,7 +91,7 @@ func (thread *ThreadContext) Continue() error {
}
}
return syscall.PtraceCont(thread.Id, 0)
return sys.PtraceCont(thread.Id, 0)
}
// Single steps this thread a single instruction, ensuring that
@ -122,7 +122,7 @@ func (thread *ThreadContext) Step() (err error) {
}()
}
err = syscall.PtraceSingleStep(thread.Id)
err = sys.PtraceSingleStep(thread.Id)
if err != nil {
return fmt.Errorf("step failed: %s", err.Error())
}