delve/pkg/proc/native/syscall_windows_arm64.go
Quim Muntal 4455d6a9ef
Add support for windows/arm64 (#3063)
* Add support for windows/arm64

* split sentinel files and add winarm64 experiment

* update loadBinaryInfoPE to support PIE binaries

* skip TestDump on windows/arm64

* run windows/arm64 compilation on windows/amd64

* add entry point check for pie binaries

* delete unusded code

* document windows/arm64 breakpoint

* implement changing windows/arm64 fp registers

* update crosscall offset names

* fix G load when using CGO

* fix testvariablescgo

* remove DerefGStructOffset

* derefrence gstructoffset in GStructOffset() if necessary
2022-09-21 13:39:44 -07:00

24 lines
1.0 KiB
Go

package native
import "github.com/go-delve/delve/pkg/proc/winutil"
const (
_CONTEXT_ARM64 = 0x00400000
_CONTEXT_CONTROL = (_CONTEXT_ARM64 | 0x1)
_CONTEXT_INTEGER = (_CONTEXT_ARM64 | 0x2)
_CONTEXT_FLOATING_POINT = (_CONTEXT_ARM64 | 0x4)
_CONTEXT_DEBUG_REGISTERS = (_CONTEXT_ARM64 | 0x8)
_CONTEXT_ARM64_X18 = (_CONTEXT_ARM64 | 0x10)
_CONTEXT_FULL = (_CONTEXT_CONTROL | _CONTEXT_INTEGER | _CONTEXT_FLOATING_POINT)
_CONTEXT_ALL = (_CONTEXT_CONTROL | _CONTEXT_INTEGER | _CONTEXT_FLOATING_POINT | _CONTEXT_DEBUG_REGISTERS | _CONTEXT_ARM64_X18)
_CONTEXT_EXCEPTION_ACTIVE = 0x8000000
_CONTEXT_SERVICE_ACTIVE = 0x10000000
_CONTEXT_EXCEPTION_REQUEST = 0x40000000
_CONTEXT_EXCEPTION_REPORTING = 0x80000000
)
// zsyscall_windows.go, an autogenerated file, wants to refer to the context
// structure as _CONTEXT, but we need to have it in pkg/proc/winutil.CONTEXT
// because it's also used on non-windows operating systems.
type _CONTEXT = winutil.ARM64CONTEXT