This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix hppa_linux_sigtramp_frame_unwind_cache


> The sigcontext structure looks like this:
> 
> struct sigcontext {
>     unsigned long sc_flags;
>     unsigned long sc_gr[32];
>     unsigned long long sc_fr[32];
>     unsigned long sc_iasq[2];
>     unsigned long sc_iaoq[2];
>     unsigned long sc_sar;
> };
> 
> I am positive that when I wrote this the structure got padded between
> sc_gr and sc_fr to keep the unsigned long long at a 8-byte boundary.

No, you are correct.  The long long field will be aligned at an 8-byte
boundary.  I will keep the pad.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]