From b53f903cf1172b62cbaff17c34405b27172acb76 Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Mon, 30 Jan 2017 17:04:56 -0800 Subject: [PATCH] debuggerd: fix `debuggerd -b ` Dump all of the threads when using `debuggerd -b`. Bug: http://b/34719257 Test: `debuggerd -b mediaserver` Change-Id: I2f57100985e5b0c2bf019482ba9feff31921692f --- debuggerd/crash_dump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debuggerd/crash_dump.cpp b/debuggerd/crash_dump.cpp index c14593393..58eaed717 100644 --- a/debuggerd/crash_dump.cpp +++ b/debuggerd/crash_dump.cpp @@ -322,7 +322,7 @@ int main(int argc, char** argv) { bool fatal_signal = signo != DEBUGGER_SIGNAL; std::set siblings; std::set attached_siblings; - if (fatal_signal) { + if (fatal_signal || backtrace) { if (!android::procinfo::GetProcessTids(target, &siblings)) { PLOG(FATAL) << "failed to get process siblings"; }