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 #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.

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