• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/corennnnn


Commit MetaInfo

Révision8b6b654a5f24a481831828ff4e87fa2fe0309c1a (tree)
l'heure2016-08-10 07:52:26
AuteurJosh Gao <jmgao@goog...>
CommiterJosh Gao

Message de Log

debuggerd: fix missed use of ptrace(PTRACE_ATTACH).

Bug: http://b/29555636
Change-Id: Ibd8a2e2b619b74aac667555b7085d6f28e367c07

Change Summary

Modification

--- a/debuggerd/tombstone.cpp
+++ b/debuggerd/tombstone.cpp
@@ -447,7 +447,7 @@ static bool dump_sibling_thread_report(
447447 }
448448
449449 // 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)) {
451451 _LOG(log, logtype::ERROR, "ptrace attach to %d failed: %s\n", new_tid, strerror(errno));
452452 continue;
453453 }