[Lldb-commits] [PATCH] D63545: [lldb] [Process/NetBSD] Support reading YMM registers via PT_*XSTATE [DO NOT MERGE]
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 20 04:37:12 PDT 2019
mgorny added a comment.
In D63545#1551681 <https://reviews.llvm.org/D63545#1551681>, @labath wrote:
> In D63545#1551675 <https://reviews.llvm.org/D63545#1551675>, @mgorny wrote:
>
> > In D63545#1551627 <https://reviews.llvm.org/D63545#1551627>, @labath wrote:
> >
> > > We have the same XSTATE<->YMM conversion functions in NativeProcessLinux. It would be nice to extract them to some common place (Plugins/Process/Utility, I guess :P).
> >
> >
> > Hmm, I guess that's doable if we pass the relevant struct fields as pointers.
>
>
> Maybe have GetYMM(unsigned num, YMM& reg)/SetYMM(unsigned num, const YMM ®) methods on the XSAVE struct ?
We aren't using XSAVE struct. We are using NetBSD-specific `struct xstate` that has guaranteed fixed offsets.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D63545/new/
https://reviews.llvm.org/D63545
More information about the lldb-commits
mailing list