|
Line
Link Here
|
| 0 |
-- libc/sysdeps/unix/sysv/linux/ptrace.c |
0 |
++ libc/sysdeps/unix/sysv/linux/ptrace.c |
|
Lines 1-4
Link Here
|
| 1 |
/* Copyright (C) 1995,1996,1997,1998,2000,2003 Free Software Foundation, Inc. |
1 |
/* Copyright (C) 1995-1998,2000,2003,2006 Free Software Foundation, Inc. |
| 2 |
This file is part of the GNU C Library. |
2 |
This file is part of the GNU C Library. |
| 3 |
|
3 |
|
| 4 |
The GNU C Library is free software; you can redistribute it and/or |
4 |
The GNU C Library is free software; you can redistribute it and/or |
|
Lines 21-26
Link Here
|
| 21 |
#include <sys/ptrace.h> |
21 |
#include <sys/ptrace.h> |
| 22 |
#include <sys/user.h> |
22 |
#include <sys/user.h> |
| 23 |
#include <stdarg.h> |
23 |
#include <stdarg.h> |
|
|
24 |
#include <signal.h> |
| 24 |
|
25 |
|
| 25 |
#include <sysdep.h> |
26 |
#include <sysdep.h> |
| 26 |
#include <sys/syscall.h> |
27 |
#include <sys/syscall.h> |
|
Lines 89-94
ptrace (enum __ptrace_request request, .
Link Here
|
| 89 |
#endif |
90 |
#endif |
| 90 |
break; |
91 |
break; |
| 91 |
|
92 |
|
|
|
93 |
case PTRACE_GETSIGINFO: |
| 94 |
case PTRACE_SETSIGINFO: |
| 95 |
(void) CHECK_1 ((siginfo_t *) data); |
| 96 |
break; |
| 97 |
|
| 98 |
case PTRACE_GETEVENTMSG: |
| 99 |
(void) CHECK_1 ((unsigned long *) data); |
| 100 |
break; |
| 101 |
|
| 102 |
case PTRACE_SETOPTIONS: |
| 103 |
(void) CHECK_1 ((long *) data); |
| 104 |
break; |
| 105 |
|
| 92 |
case PTRACE_TRACEME: |
106 |
case PTRACE_TRACEME: |
| 93 |
case PTRACE_CONT: |
107 |
case PTRACE_CONT: |
| 94 |
case PTRACE_KILL: |
108 |
case PTRACE_KILL: |
| 95 |
-- libc/sysdeps/unix/sysv/linux/sys/ptrace.h |
109 |
++ libc/sysdeps/unix/sysv/linux/sys/ptrace.h |
|
Lines 1-5
Link Here
|
| 1 |
/* `ptrace' debugger support interface. Linux version. |
1 |
/* `ptrace' debugger support interface. Linux version. |
| 2 |
Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. |
2 |
Copyright (C) 1996-1999,2000,2006 Free Software Foundation, Inc. |
| 3 |
This file is part of the GNU C Library. |
3 |
This file is part of the GNU C Library. |
| 4 |
|
4 |
|
| 5 |
The GNU C Library is free software; you can redistribute it and/or |
5 |
The GNU C Library is free software; you can redistribute it and/or |
|
Lines 109-116
enum __ptrace_request
Link Here
|
| 109 |
#define PT_SETFPXREGS PTRACE_SETFPXREGS |
109 |
#define PT_SETFPXREGS PTRACE_SETFPXREGS |
| 110 |
|
110 |
|
| 111 |
/* Continue and stop at the next (return from) syscall. */ |
111 |
/* Continue and stop at the next (return from) syscall. */ |
| 112 |
PTRACE_SYSCALL = 24 |
112 |
PTRACE_SYSCALL = 24, |
| 113 |
#define PT_SYSCALL PTRACE_SYSCALL |
113 |
#define PT_SYSCALL PTRACE_SYSCALL |
|
|
114 |
|
| 115 |
/* Set ptrace filter options. */ |
| 116 |
PTRACE_SETOPTIONS = 0x4200, |
| 117 |
#define PT_SETOPTIONS PTRACE_SETOPTIONS |
| 118 |
|
| 119 |
/* Get last ptrace message. */ |
| 120 |
PTRACE_GETEVENTMSG = 0x4201, |
| 121 |
#define PT_GETEVENTMSG PT_SETOPTIONS |
| 122 |
|
| 123 |
/* Get siginfo for process. */ |
| 124 |
PTRACE_GETSIGINFO = 0x4202, |
| 125 |
#define PT_GETSIGINFO PTRACE_GETSIGINFO |
| 126 |
|
| 127 |
/* Set new siginfo for process. */ |
| 128 |
PTRACE_SETSIGINFO = 0x4203 |
| 129 |
#define PT_SETSIGINFO PTRACE_SETSIGINFO |
| 114 |
}; |
130 |
}; |
| 115 |
|
131 |
|
| 116 |
/* Perform process tracing functions. REQUEST is one of the values |
132 |
/* Perform process tracing functions. REQUEST is one of the values |