[dev] ignore register read error
This commit is contained in:
parent
9c6f5c64fb
commit
091a8666a5
4
main.c
4
main.c
@ -177,7 +177,9 @@ static void tracer(pid_t ppid) {
|
|||||||
if (WSTOPSIG(status) == (SIGTRAP | 0x80)) {
|
if (WSTOPSIG(status) == (SIGTRAP | 0x80)) {
|
||||||
struct user_regs_struct regs;
|
struct user_regs_struct regs;
|
||||||
if (ptrace(PTRACE_GETREGS, pid, NULL, ®s) == -1) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user