diff options
| author | Christopher Ferris <cferris@google.com> | 2014-01-28 21:23:50 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-01-28 21:23:50 +0000 |
| commit | d391c9b4acb2bcd6cec048075e728d3aee6a0d6f (patch) | |
| tree | c811c4a561ef19686b393ea4f5c296c2bd73e896 /debuggerd | |
| parent | d2acdd82e613b3e1d79a00943ac3bf5fbc14a766 (diff) | |
| parent | df2906186b6952c57b1f662bfef0b65c9f8c2e0d (diff) | |
| download | system_core-d391c9b4acb2bcd6cec048075e728d3aee6a0d6f.tar.gz system_core-d391c9b4acb2bcd6cec048075e728d3aee6a0d6f.tar.bz2 system_core-d391c9b4acb2bcd6cec048075e728d3aee6a0d6f.zip | |
Merge "Re-enable libunwind for arm."
Diffstat (limited to 'debuggerd')
| -rw-r--r-- | debuggerd/tombstone.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/debuggerd/tombstone.cpp b/debuggerd/tombstone.cpp index b4c57ccba..11e9af5ef 100644 --- a/debuggerd/tombstone.cpp +++ b/debuggerd/tombstone.cpp @@ -625,12 +625,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); } @@ -641,12 +638,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); } |
