summaryrefslogtreecommitdiff
path: root/debuggerd
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2016-03-09 14:35:54 -0800
committerChristopher Ferris <cferris@google.com>2016-03-10 14:14:43 -0800
commitc463ba45c42b4e2d8ce30c02a626d7183102f46e (patch)
tree4e68f1cb0a203371c57ef864def5acc4178a5d7f /debuggerd
parent01d76eb1ecb943db042eb6618087c0e22588e6b3 (diff)
Add error reporting mechanism for failing Unwind.
Remove the logging of an error if a thread disappears before the unwind can begin. This can happen, so allow the caller to determine if this is really a problem worth logging. Bug: 27449879 (cherry picked from commit 206a3b9798e3622c906a3cafdb113c271c1c927c) Change-Id: If9e7cfeb6eb7b122679a734c1a9eacee8354ef18
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/backtrace.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/debuggerd/backtrace.cpp b/debuggerd/backtrace.cpp
index b6916e5b4..32843d860 100644
--- a/debuggerd/backtrace.cpp
+++ b/debuggerd/backtrace.cpp
@@ -91,7 +91,8 @@ static void dump_thread(log_t* log, BacktraceMap* map, pid_t pid, pid_t tid) {
if (backtrace->Unwind(0)) {
dump_backtrace_to_log(backtrace.get(), log, " ");
} else {
- ALOGE("Unwind failed: tid = %d", tid);
+ ALOGE("Unwind failed: tid = %d: %s", tid,
+ backtrace->GetErrorString(backtrace->GetError()).c_str());
}
}