debuggerd: fix missed use of ptrace(PTRACE_ATTACH).

am: 8b6b654a5f

Change-Id: Iebf1eb6f47a917c84c3e5f1bd16d9ed5f3a487ae
This commit is contained in:
Josh Gao 2016-08-09 23:23:00 +00:00 committed by android-build-merger
commit fe59793375

View file

@ -447,7 +447,7 @@ static bool dump_sibling_thread_report(
}
// 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));
continue;
}