mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 12:59:01 +08:00
proc: load more registers
Adds ability to load x87, SSE and AVX registers. Fixes #666
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user