proc: load more registers

Adds ability to load x87, SSE and AVX registers.

Fixes #666
This commit is contained in:
aarzilli
2016-11-15 17:16:33 +01:00
parent 63b8fa8269
commit 8f0646e426
29 changed files with 701 additions and 92 deletions

View File

@ -163,7 +163,7 @@ func TestHalt(t *testing.T) {
if th.running != false {
t.Fatal("expected running = false for thread", th.ID)
}
_, err := th.Registers()
_, err := th.Registers(false)
assertNoError(err, t, "Registers")
}
go func() {
@ -189,7 +189,7 @@ func TestHalt(t *testing.T) {
if th.running != false {
t.Fatal("expected running = false for thread", th.ID)
}
_, err := th.Registers()
_, err := th.Registers(false)
assertNoError(err, t, "Registers")
}
})
@ -676,6 +676,9 @@ func TestCGONext(t *testing.T) {
if runtime.GOOS == "darwin" && strings.Contains(runtime.Version(), "1.4") {
return
}
if os.Getenv("CGO_ENABLED") == "" {
return
}
withTestProcess("cgotest", t, func(p *Process, fixture protest.Fixture) {
pc, err := p.FindFunctionLocation("main.main", true, 0)
@ -895,6 +898,9 @@ func TestGetG(t *testing.T) {
if runtime.GOOS == "darwin" && strings.Contains(runtime.Version(), "1.4") {
return
}
if os.Getenv("CGO_ENABLED") == "" {
return
}
withTestProcess("cgotest", t, func(p *Process, fixture protest.Fixture) {
testGSupportFunc("cgo", t, p, fixture)