summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-02-09 04:46:32 +0000
committerEric Andersen <andersen@codepoet.org>2001-02-09 04:46:32 +0000
commit8b20f6ceaeac307548ab6b0b5ef9c7cc7467ae65 (patch)
tree2b60d66c93398570682e73ef479cbd55d14399c8 /libc/sysdeps
parent7cbba5f8ce986851c4a3764ceee4cda3f3cd156f (diff)
Include ptrace support so debugging will hopefully work.
-Erik
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 4312ee535..d9ae26375 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -200,6 +200,11 @@ _syscall1(int, stime, time_t *, t);
#endif
//#define __NR_ptrace 26
+#include <sys/ptrace.h>
+#define __NR___ptrace __NR_ptrace
+_syscall4(long, __ptrace, enum __ptrace_request, request, pid_t, pid,
+ void*, addr, void*, data);
+
//#define __NR_alarm 27
#ifdef L_alarm