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: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 24 Jun 2016 14:51:45 +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 #32 from Pedro Alves <palves at redhat dot com> ---
I have an idea:
- leave nat_siginfo only for 64-bit
- add a siginfo-that-ptrace-uses typedef :
#if __ILP32__
typedef compat_x32_siginfo_t ptrace_siginfo_t
#else
typedef nat_siginfo_t ptrace_siginfo_t
#endif
and then use ptrace_siginfo_t instead of nat_siginfo for the memcpys.
Hand on while I try it out.
--
You are receiving this mail because:
You are on the CC list for the bug.