This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/20287] X32 and "gdb_static_assert (sizeof (nat_siginfo_t) == sizeof (siginfo_t))"
- From: "walfred.tedeschi at intel dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 22 Jun 2016 13:40:58 +0000
- Subject: [Bug gdb/20287] X32 and "gdb_static_assert (sizeof (nat_siginfo_t) == sizeof (siginfo_t))"
- Auto-submitted: auto-generated
- References: <bug-20287-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20287
--- Comment #14 from Walfred Tedeschi <walfred.tedeschi at intel dot com> ---
Only the nat_siginfo has to be changed, in case we are compiling in x32 native.
All others have the right pad.
48 typedef struct nat_siginfo
49 {
50 int si_signo;
51 int si_errno;
52 int si_code;
53
54 union
55 {
56 int _pad[((128 / sizeof (int)) - 4)];
Here is the compatibility layer i.e. 32bit running on x86_64
138 typedef struct compat_siginfo
139 {
140 int si_signo;
141 int si_errno;
142 int si_code;
143
144 union
145 {
146 int _pad[((128 / sizeof (int)) - 3)];
For X32:
205 typedef struct compat_x32_siginfo
206 {
207 int si_signo;
208 int si_errno;
209 int si_code;
210
211 union
212 {
213 int _pad[((128 / sizeof (int)) - 3)];
214
--
You are receiving this mail because:
You are on the CC list for the bug.