| @@ -1,28 +1,29 @@ | | | @@ -1,28 +1,29 @@ |
1 | $NetBSD: TODO.ptrace,v 1.11 2017/01/14 01:36:28 kamil Exp $ | | 1 | $NetBSD: TODO.ptrace,v 1.12 2017/01/26 01:04:23 kamil Exp $ |
2 | | | 2 | |
3 | Items we (currently) plan to finish in the ptrace(2) field: | | 3 | Items we (currently) plan to finish in the ptrace(2) field: |
4 | | | 4 | |
5 | - verify ppid of core dump generated with PT_DUMPCORE | | 5 | - verify ppid of core dump generated with PT_DUMPCORE |
6 | it must point to the real parent, not tracer | | 6 | it must point to the real parent, not tracer |
7 | - adapt OpenBSD regress test (regress/sys/ptrace/ptrace.c) for the ATF context | | 7 | - adapt OpenBSD regress test (regress/sys/ptrace/ptrace.c) for the ATF context |
8 | - add new ptrace(2) calls to lock (suspend) and unlock LWP within a process | | 8 | - add new ptrace(2) calls to lock (suspend) and unlock LWP within a process |
9 | - add PT_DUMPCORE tests in the ATF framework | | 9 | - add PT_DUMPCORE tests in the ATF framework |
10 | - add ATF tests for PT_WRITE_I and PIOD_WRITE_I - test mprotect restrictions | | 10 | - add ATF tests for PT_WRITE_I and PIOD_WRITE_I - test mprotect restrictions |
11 | - add ATF tests for PIOD_READ_AUXV | | | |
12 | - once the API for hardware watchpoints will stabilize, document it | | 11 | - once the API for hardware watchpoints will stabilize, document it |
13 | - add tests for the procfs interface covering all functions available on the | | 12 | - add tests for the procfs interface covering all functions available on the |
14 | same level as ptrace(2) | | 13 | same level as ptrace(2) |
15 | - add support for PT_STEP, PT_GETREGS, PT_SETREGS, PT_GETFPREGS, PT_SETFPREGS | | 14 | - add support for PT_STEP, PT_GETREGS, PT_SETREGS, PT_GETFPREGS, PT_SETFPREGS |
16 | in all ports | | 15 | in all ports |
17 | - integrate all ptrace(2) features in gdb | | 16 | - integrate all ptrace(2) features in gdb |
18 | - add ptrace(2) NetBSD support in LLDB | | 17 | - add ptrace(2) NetBSD support in LLDB |
19 | - add proper implementation of PTRACE_VFORK for vfork(2)-like events | | 18 | - add proper implementation of PTRACE_VFORK for vfork(2)-like events |
20 | - remove exect(3) - there is no usecase for it | | 19 | - remove exect(3) - there is no usecase for it |
21 | - refactor pthread_dbg(3) to only query private pthread_t data, otherwise it | | 20 | - refactor pthread_dbg(3) to only query private pthread_t data, otherwise it |
22 | duplicates ptrace(2) interface and cannot cover all types of threads | | 21 | duplicates ptrace(2) interface and cannot cover all types of threads |
| | | 22 | - research what happens when a tracee masks signals (including SIGTRAP) and a |
| | | 23 | breakpoint is triggered |
23 | - add ATF tests for SIGCHLD | | 24 | - add ATF tests for SIGCHLD |
24 | - add ATF tests for PT_SYSCALL and PT_SYSCALLEMU | | 25 | - add ATF tests for PT_SYSCALL and PT_SYSCALLEMU |
25 | | | 26 | |
26 | and of course: fix as many bugs as possible. | | 27 | and of course: fix as many bugs as possible. |
27 | | | 28 | |
28 | Features in ELF, DWARF, CTF, DTrace are out of scope of the above list. | | 29 | Features in ELF, DWARF, CTF, DTrace are out of scope of the above list. |