Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

pkg/proc/native,pkg/proc/amd64util: xsave decoding cleanup #3840

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

aarzilli
Copy link
Member

  • move the cpuid querying code to pkg/proc/native/cpuid since
    pkg/proc/native is the only package entitled to calling it
  • add a type to describe the xstate_bv bitmap instead of using
    hardcoded constants everywhere
  • use xcr0 instead of xstate_bv for the offset heuristic like gdb does

Copy link
Member

@derekparker derekparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

- move the cpuid querying code to pkg/proc/native/cpuid since
  pkg/proc/native is the only package entitled to calling it
- add a type to describe the xstate_bv bitmap instead of using
  hardcoded constants everywhere
- use xcr0 instead of xstate_bv for the offset heuristic like gdb does
@aarzilli aarzilli merged commit e0c80c8 into go-delve:master Nov 21, 2024
2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants