[SH][PATCH] SH Kernel compatibility
Mike Frysinger
vapier@gentoo.org
Sat Jan 31 01:21:00 GMT 2009
On Thursday 29 January 2009 09:40:39 Andrew Stubbs wrote:
> --- src/glibc-mainline/sysdeps/unix/sysv/linux/sys/ptrace.h.orig
> +++ src/glibc-mainline/sysdeps/unix/sysv/linux/sys/ptrace.h
> @@ -72,21 +72,25 @@ enum __ptrace_request
>
> /* Get all general purpose registers used by a processes.
> This is not supported on all machines. */
> +#undef PTRACE_GETREGS
> PTRACE_GETREGS = 12,
> #define PT_GETREGS PTRACE_GETREGS
>
> /* Set all general purpose registers used by a processes.
> This is not supported on all machines. */
> +#undef PTRACE_SETREGS
> PTRACE_SETREGS = 13,
> #define PT_SETREGS PTRACE_SETREGS
>
> /* Get all floating point registers used by a processes.
> This is not supported on all machines. */
> +#undef PTRACE_GETFPREGS
> PTRACE_GETFPREGS = 14,
> #define PT_GETFPREGS PTRACE_GETFPREGS
>
> /* Set all floating point registers used by a processes.
> This is not supported on all machines. */
> +#undef PTRACE_SETFPREGS
> PTRACE_SETFPREGS = 15,
> #define PT_SETFPREGS PTRACE_SETFPREGS
the other changes are correct (Gentoo has had pretty much the same patch since
glibc-2.5), but i think this is part is wrong. fix your kernel headers
instead.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20090131/2b682cfe/attachment.sig>
More information about the Libc-alpha
mailing list