Made ptrace use TRACEEXEC to filter extra SIGTRAPS.

Made get_passive not be ignored in some situations.

Made process_state cache syscall value.