skeeto/ptrace-examples

Issues running on arm64

Closed this issue · 1 comments

I try to run the code on arm64, but got issues in attaching the child process:

    for (;;) {
        /* Enter next system call */
        if (ptrace(PTRACE_SYSCALL, pid, 0, 0) == -1)
            FATAL("%s 1", strerror(errno));
        if (waitpid(pid, 0, 0) == -1)
            FATAL("%s 2", strerror(errno));

strace: No such process 1

Is there any suggestion for arm64 ptrace? Thank you.

Never mind. I made mistake on the print function.