[Lldb-commits] [lldb] r342029 - Reduce alignment on struct XSAVE, fixing a gcc warning
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Sep 12 09:13:34 PDT 2018
Sounds good, thanks for clarifying. Just want to be safe.
> On Sep 12, 2018, at 9:09 AM, Pavel Labath <pavel at labath.sk> wrote:
> On 12/09/18 16:37, Greg Clayton wrote:
>> Don't we get a blob of register bytes back from ptrace when reading registers? The struct we use must match this byte for byte.
> That is true. However, this alignment does not set the layout of the
> fields in the struct. Rather it sets the alignment of the struct as a
> whole. Therefore, the offsets *within* the struct remain unchanged.
More information about the lldb-commits