diff options
author | Josh Gao <jmgao@google.com> | 2016-08-09 15:29:58 -0700 |
---|---|---|
committer | gitbuildkicker <android-build@google.com> | 2016-08-09 16:48:27 -0700 |
commit | 4cc6d3d4057ef566a87a2e1db2c4c152b52e0765 (patch) | |
tree | b444563d0b5909430ef6e45c5381928d42c1aabd | |
parent | c764dcd6977a04e272e44b0381c13ac4aed8a280 (diff) | |
download | system_core-4cc6d3d4057ef566a87a2e1db2c4c152b52e0765.zip system_core-4cc6d3d4057ef566a87a2e1db2c4c152b52e0765.tar.gz system_core-4cc6d3d4057ef566a87a2e1db2c4c152b52e0765.tar.bz2 |
debuggerd: fix missed use of ptrace(PTRACE_ATTACH).
Bug: http://b/29555636
Change-Id: Ibd8a2e2b619b74aac667555b7085d6f28e367c07
-rw-r--r-- | debuggerd/tombstone.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp index aeffc66..d04b721 100644 --- a/debuggerd/tombstone.cpp +++ b/debuggerd/tombstone.cpp @@ -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; } |