delve/pkg/proc/amd64util
Chen bef326c6a5
proc: use CPUID to determine ZMM_Hi256 region offset (#3831)
The offset of state component i can be found via
CPUID.(EAX=0DH,ECX=i):EBX. The ZMM_Hi256 is state component 6, so we use
CPUID to enumerate the offset instead of hardcoding.

For core dumps, we guess the ZMM_Hi256 offset based on xcr0 and the
length of xsave region. The logic comes from binutils-gdb.

Fixes #3827.
2024-10-21 09:16:57 -07:00
..
debugregs.go *: replace fmt.Errorf with errors.New (#3752) 2024-06-20 21:50:18 +02:00
xsave_amd64.go proc: use CPUID to determine ZMM_Hi256 region offset (#3831) 2024-10-21 09:16:57 -07:00
xsave_amd64.s proc: use CPUID to determine maximum size of XSAVE area (#2256) 2020-12-14 09:39:01 -08:00
xsave_other.go proc: use CPUID to determine ZMM_Hi256 region offset (#3831) 2024-10-21 09:16:57 -07:00
xsave.go proc: use CPUID to determine ZMM_Hi256 region offset (#3831) 2024-10-21 09:16:57 -07:00