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: [PATCH] Linux x86/x86_64: <sys/ptrace.h> does not provide some request constants [BZ #22433]


On Wed, Dec 20, 2017 at 10:50:01PM +0000, Joseph Myers wrote:
> On Wed, 20 Dec 2017, Martin Balao wrote:
> 
> > 	* sysdeps/unix/sysv/linux/x86_64/sys/ptrace.h: New file.
> > 	Constants added: PTRACE_GET_THREAD_AREA,
> > PTRACE_SET_THREAD_AREA,
> > 	PTRACE_ARCH_PRCTL, PTRACE_SYSEMU and PTRACE_SYSEMU_SINGLESTEP.
> 
> There must never be any installed headers specific to x86_64 or i386, 
> because headers installed for one multilib configuration may be used for 
> all three.  Thus, you need a single header for x86, and if there are any 
> differences between x86_64 (64-bit), x86_64 (x32) and i386, that header 
> must contain appropriate conditionals.

btw, all these sysdeps/unix/sysv/linux/*/sys/ptrace.h files share a lot
of common definitions, can we do better than multiplying these files
this way?


-- 
ldv

Attachment: signature.asc
Description: PGP signature


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