| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: ptrace.h,v 1.66 2019/10/09 13:19:43 kamil Exp $ */ | | 1 | /* $NetBSD: ptrace.h,v 1.67 2019/12/04 13:52:27 kamil Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1984, 1993 | | 4 | * Copyright (c) 1984, 1993 |
5 | * The Regents of the University of California. All rights reserved. | | 5 | * The Regents of the University of California. All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -75,27 +75,28 @@ | | | @@ -75,27 +75,28 @@ |
75 | /* 9 */ "PT_ATTACH", \ | | 75 | /* 9 */ "PT_ATTACH", \ |
76 | /* 10 */ "PT_DETACH", \ | | 76 | /* 10 */ "PT_DETACH", \ |
77 | /* 11 */ "PT_IO", \ | | 77 | /* 11 */ "PT_IO", \ |
78 | /* 12 */ "PT_DUMPCORE", \ | | 78 | /* 12 */ "PT_DUMPCORE", \ |
79 | /* 13 */ "PT_LWPINFO", \ | | 79 | /* 13 */ "PT_LWPINFO", \ |
80 | /* 14 */ "PT_SYSCALL", \ | | 80 | /* 14 */ "PT_SYSCALL", \ |
81 | /* 15 */ "PT_SYSCALLEMU", \ | | 81 | /* 15 */ "PT_SYSCALLEMU", \ |
82 | /* 16 */ "PT_SET_EVENT_MASK", \ | | 82 | /* 16 */ "PT_SET_EVENT_MASK", \ |
83 | /* 17 */ "PT_GET_EVENT_MASK", \ | | 83 | /* 17 */ "PT_GET_EVENT_MASK", \ |
84 | /* 18 */ "PT_GET_PROCESS_STATE", \ | | 84 | /* 18 */ "PT_GET_PROCESS_STATE", \ |
85 | /* 19 */ "PT_SET_SIGINFO", \ | | 85 | /* 19 */ "PT_SET_SIGINFO", \ |
86 | /* 20 */ "PT_GET_SIGINFO", \ | | 86 | /* 20 */ "PT_GET_SIGINFO", \ |
87 | /* 21 */ "PT_RESUME", \ | | 87 | /* 21 */ "PT_RESUME", \ |
88 | /* 22 */ "PT_SUSPEND", | | 88 | /* 22 */ "PT_SUSPEND", \ |
| | | 89 | /* 23 */ "PT_STOP", |
89 | | | 90 | |
90 | /* PT_{G,S}EVENT_MASK */ | | 91 | /* PT_{G,S}EVENT_MASK */ |
91 | typedef struct ptrace_event { | | 92 | typedef struct ptrace_event { |
92 | int pe_set_event; | | 93 | int pe_set_event; |
93 | } ptrace_event_t; | | 94 | } ptrace_event_t; |
94 | | | 95 | |
95 | /* PT_GET_PROCESS_STATE */ | | 96 | /* PT_GET_PROCESS_STATE */ |
96 | typedef struct ptrace_state { | | 97 | typedef struct ptrace_state { |
97 | int pe_report_event; | | 98 | int pe_report_event; |
98 | union { | | 99 | union { |
99 | pid_t _pe_other_pid; | | 100 | pid_t _pe_other_pid; |
100 | lwpid_t _pe_lwp; | | 101 | lwpid_t _pe_lwp; |
101 | } _option; | | 102 | } _option; |