[Lldb-commits] [PATCH] D63545: [lldb] [Process/NetBSD] Support reading YMM registers via PT_*XSTATE [DO NOT MERGE]

Kamil Rytarowski via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 20 09:16:07 PDT 2019


krytarowski added inline comments.


================
Comment at: lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp:239
+
+  if (byte_order == lldb::eByteOrderBig) {
+    ::memcpy(m_xstate_x86_64.xs_fxsave.fx_xmm[reg_index].xmm_bytes,
----------------
labath wrote:
> mgorny wrote:
> > labath wrote:
> > > Why would we ever want to do this?
> > I was asking myself the exact same thing! But the code is present both on Linux and FreeBSD, so I presumed there is some fancy use case I have no clue about.
> Yeah, I don't think that's a safe assumption around here. :)
Right now x86 supports only LE on NetBSD.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63545/new/

https://reviews.llvm.org/D63545





More information about the lldb-commits mailing list