debuggerd: fix missed use of ptrace(PTRACE_ATTACH).
Bug: http://b/29555636 Change-Id: Ibd8a2e2b619b74aac667555b7085d6f28e367c07
This commit is contained in:
parent
e467cced5c
commit
8b6b654a5f
1 changed files with 1 additions and 1 deletions
|
|
@ -447,7 +447,7 @@ static bool dump_sibling_thread_report(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Skip this thread if cannot ptrace it
|
// Skip this thread if cannot ptrace it
|
||||||
if (ptrace(PTRACE_ATTACH, new_tid, 0, 0) < 0) {
|
if (!ptrace_attach_thread(pid, new_tid)) {
|
||||||
_LOG(log, logtype::ERROR, "ptrace attach to %d failed: %s\n", new_tid, strerror(errno));
|
_LOG(log, logtype::ERROR, "ptrace attach to %d failed: %s\n", new_tid, strerror(errno));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue