diff --git a/main.c b/main.c index 84db31c..7276648 100644 --- a/main.c +++ b/main.c @@ -177,7 +177,9 @@ static void tracer(pid_t ppid) { if (WSTOPSIG(status) == (SIGTRAP | 0x80)) { struct user_regs_struct regs; if (ptrace(PTRACE_GETREGS, pid, NULL, ®s) == -1) { - die("Cannot get registers"); + // TODO: this reaches, even though the stop reason is syscall + // printf("error=%d pid=%d\n", errno, pid); + printf("Cannot get registers\n"); continue; }