This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix hppa_linux_sigtramp_frame_unwind_cache
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: randolph at tausq dot org (Randolph Chung)
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 13 Sep 2008 23:47:21 -0400 (EDT)
- Subject: 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)