summaryrefslogtreecommitdiffstats
path: root/debuggerd
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2014-01-29 12:19:59 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-01-29 12:19:59 +0000
commit96a0bf1e94cbb8bc625333537ace11944e20c396 (patch)
treeee3362a677cb64691d845cf100b1aa1aa768597f /debuggerd
parent8e4cdc1e8622f5c6ec1995f42b93489d58b982b9 (diff)
parent36a4e4085e55048ee2a78c7d5b50f7395e547fa2 (diff)
downloadsystem_core-96a0bf1e94cbb8bc625333537ace11944e20c396.zip
system_core-96a0bf1e94cbb8bc625333537ace11944e20c396.tar.gz
system_core-96a0bf1e94cbb8bc625333537ace11944e20c396.tar.bz2
am 36a4e408: am aaf89887: am 6fe31b2f: am d391c9b4: Merge "Re-enable libunwind for arm."
* commit '36a4e4085e55048ee2a78c7d5b50f7395e547fa2': Re-enable libunwind for arm.
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/tombstone.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp
index 0f03ac8..f8ec8cf 100644
--- a/debuggerd/tombstone.cpp
+++ b/debuggerd/tombstone.cpp
@@ -619,12 +619,9 @@ static bool dump_crash(log_t* log, pid_t pid, pid_t tid, int signal, uintptr_t a
dump_fault_addr(log, tid, signal);
}
- BacktraceMap* map = NULL;
- UniquePtr<Backtrace> backtrace(Backtrace::Create(pid, tid));
+ UniquePtr<BacktraceMap> map(BacktraceMap::Create(pid));
+ UniquePtr<Backtrace> backtrace(Backtrace::Create(pid, tid, map.get()));
if (backtrace->Unwind(0)) {
- // Grab the map that was created and share it with the siblings.
- map = backtrace->TakeMapOwnership();
-
dump_abort_message(backtrace.get(), log, abort_msg_address);
dump_thread(backtrace.get(), log, SCOPE_AT_FAULT, total_sleep_time_usec);
}
@@ -635,12 +632,9 @@ static bool dump_crash(log_t* log, pid_t pid, pid_t tid, int signal, uintptr_t a
bool detach_failed = false;
if (dump_sibling_threads) {
- detach_failed = dump_sibling_thread_report(log, pid, tid, total_sleep_time_usec, map);
+ detach_failed = dump_sibling_thread_report(log, pid, tid, total_sleep_time_usec, map.get());
}
- // Destroy the BacktraceMap object.
- delete map;
-
if (want_logs) {
dump_logs(log, pid, 0);
}