| OLD | NEW |
| 1 /* Copyright (C) 2011-2012 Free Software Foundation, Inc. | 1 /* Copyright (C) 2011-2012 Free Software Foundation, Inc. |
| 2 | 2 |
| 3 This file is part of GDB. | 3 This file is part of GDB. |
| 4 | 4 |
| 5 This program is free software; you can redistribute it and/or modify | 5 This program is free software; you can redistribute it and/or modify |
| 6 it under the terms of the GNU General Public License as published by | 6 it under the terms of the GNU General Public License as published by |
| 7 the Free Software Foundation; either version 3 of the License, or | 7 the Free Software Foundation; either version 3 of the License, or |
| 8 (at your option) any later version. | 8 (at your option) any later version. |
| 9 | 9 |
| 10 This program is distributed in the hope that it will be useful, | 10 This program is distributed in the hope that it will be useful, |
| 11 but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 GNU General Public License for more details. | 13 GNU General Public License for more details. |
| 14 | 14 |
| 15 You should have received a copy of the GNU General Public License | 15 You should have received a copy of the GNU General Public License |
| 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 16 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 17 | 17 |
| 18 #ifndef COMMON_LINUX_PTRACE_H | 18 #ifndef COMMON_LINUX_PTRACE_H |
| 19 #define COMMON_LINUX_PTRACE_H | 19 #define COMMON_LINUX_PTRACE_H |
| 20 | 20 |
| 21 struct buffer; |
| 22 |
| 21 #include <sys/ptrace.h> | 23 #include <sys/ptrace.h> |
| 22 | 24 |
| 23 #ifndef PTRACE_GETSIGINFO | 25 #ifndef PTRACE_GETSIGINFO |
| 24 # define PTRACE_GETSIGINFO 0x4202 | 26 # define PTRACE_GETSIGINFO 0x4202 |
| 25 # define PTRACE_SETSIGINFO 0x4203 | 27 # define PTRACE_SETSIGINFO 0x4203 |
| 26 #endif /* PTRACE_GETSIGINF */ | 28 #endif /* PTRACE_GETSIGINF */ |
| 27 | 29 |
| 28 /* If the system headers did not provide the constants, hard-code the normal | 30 /* If the system headers did not provide the constants, hard-code the normal |
| 29 values. */ | 31 values. */ |
| 30 #ifndef PTRACE_EVENT_FORK | 32 #ifndef PTRACE_EVENT_FORK |
| (...skipping 27 matching lines...) Expand all Loading... |
| 58 #define PTRACE_GETFDPIC_INTERP 1 | 60 #define PTRACE_GETFDPIC_INTERP 1 |
| 59 #endif | 61 #endif |
| 60 | 62 |
| 61 /* We can't always assume that this flag is available, but all systems | 63 /* We can't always assume that this flag is available, but all systems |
| 62 with the ptrace event handlers also have __WALL, so it's safe to use | 64 with the ptrace event handlers also have __WALL, so it's safe to use |
| 63 in some contexts. */ | 65 in some contexts. */ |
| 64 #ifndef __WALL | 66 #ifndef __WALL |
| 65 #define __WALL 0x40000000 /* Wait for any child. */ | 67 #define __WALL 0x40000000 /* Wait for any child. */ |
| 66 #endif | 68 #endif |
| 67 | 69 |
| 70 extern void linux_ptrace_attach_warnings (pid_t pid, struct buffer *buffer); |
| 71 extern void linux_ptrace_init_warnings (void); |
| 72 |
| 68 #endif /* COMMON_LINUX_PTRACE_H */ | 73 #endif /* COMMON_LINUX_PTRACE_H */ |
| OLD | NEW |