summaryrefslogtreecommitdiffstats
path: root/libbacktrace/UnwindPtrace.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2013-10-30 21:28:21 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-10-30 21:28:22 +0000
commit8c58086c54a23d33e915852a1355a171b09679cc (patch)
tree9eaeff7f903e0b3d2776420914e3533bc735faec /libbacktrace/UnwindPtrace.cpp
parent36d44740dd045403ae615b8dd6dac8b9a4e9f5bf (diff)
parent8ed46278bee3cfc4c216f3a1524744019b693200 (diff)
downloadsystem_core-8c58086c54a23d33e915852a1355a171b09679cc.zip
system_core-8c58086c54a23d33e915852a1355a171b09679cc.tar.gz
system_core-8c58086c54a23d33e915852a1355a171b09679cc.tar.bz2
Merge "More libbacktrace fixes."
Diffstat (limited to 'libbacktrace/UnwindPtrace.cpp')
-rw-r--r--libbacktrace/UnwindPtrace.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libbacktrace/UnwindPtrace.cpp b/libbacktrace/UnwindPtrace.cpp
index 628caa0..a734a24 100644
--- a/libbacktrace/UnwindPtrace.cpp
+++ b/libbacktrace/UnwindPtrace.cpp
@@ -45,13 +45,13 @@ UnwindPtrace::~UnwindPtrace() {
bool UnwindPtrace::Unwind(size_t num_ignore_frames) {
addr_space_ = unw_create_addr_space(&_UPT_accessors, 0);
if (!addr_space_) {
- ALOGW("UnwindPtrace::Unwind: unw_create_addr_space failed.\n");
+ BACK_LOGW("unw_create_addr_space failed.");
return false;
}
upt_info_ = reinterpret_cast<struct UPT_info*>(_UPT_create(backtrace_obj_->Tid()));
if (!upt_info_) {
- ALOGW("UnwindPtrace::Unwind: Failed to create upt info.\n");
+ BACK_LOGW("Failed to create upt info.");
return false;
}
@@ -61,7 +61,7 @@ bool UnwindPtrace::Unwind(size_t num_ignore_frames) {
unw_cursor_t cursor;
int ret = unw_init_remote(&cursor, addr_space_, upt_info_);
if (ret < 0) {
- ALOGW("UnwindPtrace::Unwind: unw_init_remote failed %d\n", ret);
+ BACK_LOGW("unw_init_remote failed %d", ret);
return false;
}
@@ -69,13 +69,13 @@ bool UnwindPtrace::Unwind(size_t num_ignore_frames) {
unw_word_t pc;
ret = unw_get_reg(&cursor, UNW_REG_IP, &pc);
if (ret < 0) {
- ALOGW("UnwindPtrace::Unwind: Failed to read IP %d\n", ret);
+ BACK_LOGW("Failed to read IP %d", ret);
break;
}
unw_word_t sp;
ret = unw_get_reg(&cursor, UNW_REG_SP, &sp);
if (ret < 0) {
- ALOGW("UnwindPtrace::Unwind: Failed to read SP %d\n", ret);
+ BACK_LOGW("Failed to read SP %d", ret);
break;
}