system/corennnnn
Révision | 8b6b654a5f24a481831828ff4e87fa2fe0309c1a (tree) |
---|---|
l'heure | 2016-08-10 07:52:26 |
Auteur | Josh Gao <jmgao@goog...> |
Commiter | Josh Gao |
debuggerd: fix missed use of ptrace(PTRACE_ATTACH).
Bug: http://b/29555636
Change-Id: Ibd8a2e2b619b74aac667555b7085d6f28e367c07
@@ -447,7 +447,7 @@ static bool dump_sibling_thread_report( | ||
447 | 447 | } |
448 | 448 | |
449 | 449 | // Skip this thread if cannot ptrace it |
450 | - if (ptrace(PTRACE_ATTACH, new_tid, 0, 0) < 0) { | |
450 | + if (!ptrace_attach_thread(pid, new_tid)) { | |
451 | 451 | _LOG(log, logtype::ERROR, "ptrace attach to %d failed: %s\n", new_tid, strerror(errno)); |
452 | 452 | continue; |
453 | 453 | } |