cleanup ptrace.c