6f188f1097
New tests are direct counterparts to the existing ones {,io_}read_d[1234]. PT_READ_D and PIOD_READ_D (from PT_IO) are traditionally used to transfer data segment. New tests make use of PT_READ_I and PIOD_READ_I (from PT_IO) in order to copy text segment from traced process. Traditionally, ptrace() has allowed for machines with distinct address spaces for instruction and data, which is why there are two requests: conceptually, PT_READ_I reads from the instruction space and PT_READ_D reads from the data space. In the current NetBSD implementation, these two requests are completely identical. --- ptrace(2) New tests follow the traditional convention and copy only instructions from dummy functions. There are no new tests copying data to .text regions from the traced process, as this is violating mprotect restrictions. This limitation may be addressed in future, as there are dedicated sysctl(7) handlers for debuggers (currently mainly gdb(1)). Tests verifying identical behavior of PT_READ_I and PT_READ_D are not planned. Sponsored by <The NetBSD Foundation> |
||
---|---|---|
bin | ||
common | ||
compat | ||
crypto | ||
dist/pf | ||
distrib | ||
doc | ||
etc | ||
external | ||
extsrc | ||
games | ||
gnu | ||
include | ||
lib | ||
libexec | ||
regress | ||
rescue | ||
sbin | ||
share | ||
sys | ||
tests | ||
tools | ||
usr.bin | ||
usr.sbin | ||
build.sh | ||
BUILDING | ||
Makefile | ||
Makefile.inc | ||
UPDATING |