system/corennnnn
修订版 | e86d0e14970166fa38f16187260679431cdd4119 (tree) |
---|---|
时间 | 2016-08-17 07:52:46 |
作者 | Josh Gao <jmgao@goog...> |
Commiter | gitbuildkicker |
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 | } |