This is the mail archive of the gdb-prs@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]

[Bug gdb/20287] X32 and "gdb_static_assert (sizeof (nat_siginfo_t) == sizeof (siginfo_t))"


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.

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