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 12:22:28 +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 #24 from Pedro Alves <palves at redhat dot com> ---
Can't see how that's related to what the kernel puts in the PTRACE_GET_SIGINFO
request. That's the _userspace_ header. Those are _compile_ time #ifdefs,
thus they can't affect whether ptrace returns an x32 siginfo or not _at
runtime_.
kernel/ptrace.c:ptrace_request handles PTRACE_GETSIGINFO:
case PTRACE_GETSIGINFO:
ret = ptrace_getsiginfo(child, &siginfo);
if (!ret)
ret = copy_siginfo_to_user(datavp, &siginfo);
break;
and I can't see any custom copy_siginfo_to_user under arch/x86/. There's a
custom copy_siginfo_to_user32 implementation (arch/x86/kernel/signal_compat.c),
but I think that that's for real 32-bit ptrace, not x32.
--
You are receiving this mail because:
You are on the CC list for the bug.