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: "noloader at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 24 Jun 2016 12:20:24 +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 #23 from Jeffrey Walton <noloader at gmail dot com> ---
(In reply to Walfred Tedeschi from comment #22)
> In the Kernel sources we have:
>
> 1 #ifndef _ASM_X86_SIGINFO_H
> 2 #define _ASM_X86_SIGINFO_H
> 3
> 4 #ifdef __x86_64__
> 5 # ifdef __ILP32__ /* x32 */
> 6 typedef long long __kernel_si_clock_t __attribute__((aligned(4)));
> 7 # define __ARCH_SI_CLOCK_T __kernel_si_clock_t
> 8 # define __ARCH_SI_ATTRIBUTES __attribute__((aligned(8)))
> 9 # else /* x86-64 */
> 10 # define __ARCH_SI_PREAMBLE_SIZE (4 * sizeof(int))
> 11 # endif
> 12 #endif
> 13
> 14 #include <asm-generic/siginfo.h>
> 15
> 16 #endif /* _ASM_X86_SIGINFO_H */
>
> http://lxr.free-electrons.com/source/arch/x86/include/uapi/asm/siginfo.h
>
> So for fix we could set the _pad conditionally as the glic does.
I've got a fresh directory ready to test this. Where would you like it?
Grep is turning up 0 hits:
# grep -R '_ASM_X86_SIGINFO_H' *
# grep -R '__ARCH_SI_ATTRIBUTES' *
# debian-8-x32-vm:gdb-7.11#
--
You are receiving this mail because:
You are on the CC list for the bug.