summaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-11-22 10:53:09 +0100
committerPeter Korsgaard <jacmet@sunsite.dk>2010-11-22 10:53:09 +0100
commitd8de970bae3744fe830e96a1ae0c4aff6ce47ba1 (patch)
treecfbefb1804a1306f93b0e076749220d3fae1ed11 /toolchain/uClibc
parent3ece089ede71e8c352985f8faf06b3a9fdf9d202 (diff)
downloadbuildroot-novena-d8de970bae3744fe830e96a1ae0c4aff6ce47ba1.tar.gz
buildroot-novena-d8de970bae3744fe830e96a1ae0c4aff6ce47ba1.zip
uClibc: sys/ptrace.h fix for 0.9.31 / powerpc so ltrace builds
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'toolchain/uClibc')
-rw-r--r--toolchain/uClibc/uClibc-0.9.31-powerpc-ptrace-fix.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/toolchain/uClibc/uClibc-0.9.31-powerpc-ptrace-fix.patch b/toolchain/uClibc/uClibc-0.9.31-powerpc-ptrace-fix.patch
new file mode 100644
index 000000000..a5ccecaa3
--- /dev/null
+++ b/toolchain/uClibc/uClibc-0.9.31-powerpc-ptrace-fix.patch
@@ -0,0 +1,62 @@
+[PATCH] powerpc: add PTRACE_EVENT_ defines needed by ltrace
+
+Equivalent to the common version and kernel headers.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
+---
+ libc/sysdeps/linux/powerpc/sys/ptrace.h | 41 +++++++++++++++++++++++++++++++-
+ 1 file changed, 40 insertions(+), 1 deletion(-)
+
+Index: uClibc-0.9.31/libc/sysdeps/linux/powerpc/sys/ptrace.h
+===================================================================
+--- uClibc-0.9.31.orig/libc/sysdeps/linux/powerpc/sys/ptrace.h
++++ uClibc-0.9.31/libc/sysdeps/linux/powerpc/sys/ptrace.h
+@@ -79,8 +79,47 @@ enum __ptrace_request
+ #define PT_DETACH PTRACE_DETACH
+
+ /* Continue and stop at the next (return from) syscall. */
+- PTRACE_SYSCALL = 24
++ PTRACE_SYSCALL = 24,
+ #define PT_SYSCALL PTRACE_SYSCALL
++
++ /* Set ptrace filter options. */
++ PTRACE_SETOPTIONS = 0x4200,
++#define PT_SETOPTIONS PTRACE_SETOPTIONS
++
++ /* Get last ptrace message. */
++ PTRACE_GETEVENTMSG = 0x4201,
++#define PT_GETEVENTMSG PTRACE_GETEVENTMSG
++
++ /* Get siginfo for process. */
++ PTRACE_GETSIGINFO = 0x4202,
++#define PT_GETSIGINFO PTRACE_GETSIGINFO
++
++ /* Set new siginfo for process. */
++ PTRACE_SETSIGINFO = 0x4203
++#define PT_SETSIGINFO PTRACE_SETSIGINFO
++};
++
++
++/* Options set using PTRACE_SETOPTIONS. */
++enum __ptrace_setoptions {
++ PTRACE_O_TRACESYSGOOD = 0x00000001,
++ PTRACE_O_TRACEFORK = 0x00000002,
++ PTRACE_O_TRACEVFORK = 0x00000004,
++ PTRACE_O_TRACECLONE = 0x00000008,
++ PTRACE_O_TRACEEXEC = 0x00000010,
++ PTRACE_O_TRACEVFORKDONE = 0x00000020,
++ PTRACE_O_TRACEEXIT = 0x00000040,
++ PTRACE_O_MASK = 0x0000007f
++};
++
++/* Wait extended result codes for the above trace options. */
++enum __ptrace_eventcodes {
++ PTRACE_EVENT_FORK = 1,
++ PTRACE_EVENT_VFORK = 2,
++ PTRACE_EVENT_CLONE = 3,
++ PTRACE_EVENT_EXEC = 4,
++ PTRACE_EVENT_VFORK_DONE = 5,
++ PTRACE_EVENT_EXIT = 6
+ };
+
+ /* Perform process tracing functions. REQUEST is one of the values