| 1 |
from ptrace.binding.func import ( # noqa |
| 2 |
HAS_PTRACE_SINGLESTEP, HAS_PTRACE_EVENTS, |
| 3 |
HAS_PTRACE_IO, HAS_PTRACE_SIGINFO, HAS_PTRACE_GETREGS, |
| 4 |
HAS_PTRACE_GETREGSET, REGISTER_NAMES, |
| 5 |
ptrace_attach, ptrace_traceme, |
| 6 |
ptrace_detach, ptrace_kill, |
| 7 |
ptrace_cont, ptrace_syscall, |
| 8 |
ptrace_setregs, |
| 9 |
ptrace_peektext, ptrace_poketext, |
| 10 |
ptrace_peekuser, |
| 11 |
ptrace_registers_t) |
| 12 |
if HAS_PTRACE_EVENTS: |
| 13 |
from ptrace.binding.func import (WPTRACEEVENT, # noqa |
| 14 |
PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK, PTRACE_EVENT_CLONE, |
| 15 |
PTRACE_EVENT_EXEC, |
| 16 |
ptrace_setoptions, ptrace_geteventmsg) |
| 17 |
if HAS_PTRACE_SINGLESTEP: |
| 18 |
from ptrace.binding.func import ptrace_singlestep # noqa |
| 19 |
if HAS_PTRACE_SIGINFO: |
| 20 |
from ptrace.binding.func import ptrace_getsiginfo # noqa |
| 21 |
if HAS_PTRACE_IO: |
| 22 |
from ptrace.binding.func import ptrace_io # noqa |
| 23 |
from ptrace.binding.freebsd_struct import ( # noqa |
| 24 |
ptrace_io_desc, |
| 25 |
PIOD_READ_D, PIOD_WRITE_D, |
| 26 |
PIOD_READ_I, PIOD_WRITE_I) |
| 27 |
if HAS_PTRACE_GETREGS or HAS_PTRACE_GETREGSET: |
| 28 |
from ptrace.binding.func import ptrace_getregs # noqa |