Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139840 - sys-libs/glibc - PTRACE_GETSIGINFO not defined in x86 version of sys/ptrace.h
Summary: sys-libs/glibc - PTRACE_GETSIGINFO not defined in x86 version of sys/ptrace.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sourceware.org/ml/libc-alpha/2...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-09 19:58 UTC by Evan Teran
Modified: 2006-09-17 22:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
glibc-linux-ptrace-updates.patch (glibc-linux-ptrace-updates.patch,2.40 KB, patch)
2006-09-16 22:04 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evan Teran 2006-07-09 19:58:52 UTC
PTRACE_GETSIGINFO not defined in x86 version of sys/ptrace.h, It is however defined in the ia64 version of the header. Despite the fact that in linux/ptrace.h it is defined, in fact doing:

#define PTRACE_GETSIGINFO	(__ptrace_request)0x4202

and using it with ptrace works perfectly. Unfortunately, because in sys/ptrace.h the constants are an enum and in linux/ptrace.h they are defines, in addition to the fact that glibc's definition of the ptrace function is slightly different to reflect an enum and thus conflicts, you cannot inlcude both headers at the same time (which would likely make things less of an issue).

Likewise PTRACE_SETSIGINFO is also not defined.

Evan Teran
Comment 1 SpanKY gentoo-dev 2006-09-16 22:04:44 UTC
Created attachment 97199 [details, diff]
glibc-linux-ptrace-updates.patch

this should do the trick
Comment 2 SpanKY gentoo-dev 2006-09-17 22:30:34 UTC
this has been merged upstream so this will be in the next glibc-2.4 release