mirror of
https://github.com/go-delve/delve.git
synced 2025-11-03 22:08:33 +08:00
proc.(*Thread).GetG: reading TLS memory directly for g address instead of modifying the executable code
This commit is contained in:
@ -9,6 +9,7 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@ -617,6 +618,11 @@ func TestGetG(t *testing.T) {
|
||||
testGSupportFunc("nocgo", t, p, fixture)
|
||||
})
|
||||
|
||||
// On OSX with Go < 1.5 CGO is not supported due to: https://github.com/golang/go/issues/8973
|
||||
if runtime.GOOS == "darwin" && strings.Contains(runtime.Version(), "1.4") {
|
||||
return
|
||||
}
|
||||
|
||||
withTestProcess("cgotest", t, func(p *Process, fixture protest.Fixture) {
|
||||
testGSupportFunc("cgo", t, p, fixture)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user