This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: [SH][PATCH] SH Kernel compatibility


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

Attachment: signature.asc
Description: This is a digitally signed message part.


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