diff options
author | Christopher Ferris <cferris@google.com> | 2013-10-29 15:44:25 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2013-10-30 14:14:54 -0700 |
commit | 8ed46278bee3cfc4c216f3a1524744019b693200 (patch) | |
tree | 5f6eab2ef98469e75dc1d1793b134ee61715cac5 /libbacktrace/Corkscrew.cpp | |
parent | 98f87d92d89079f274374409efcf57ca52b13c1f (diff) | |
download | system_core-8ed46278bee3cfc4c216f3a1524744019b693200.zip system_core-8ed46278bee3cfc4c216f3a1524744019b693200.tar.gz system_core-8ed46278bee3cfc4c216f3a1524744019b693200.tar.bz2 |
More libbacktrace fixes.
Included in minor fix ups is the addition of a warning macro to replace
all of the ALOGW calls.
Fix a race where multiple threads could be attempting to unwind the threads
of the current process at the same time.
Bug: 8410085
Change-Id: I02a65dc778dde690e5f95fc8ff069a32d0832fd1
Diffstat (limited to 'libbacktrace/Corkscrew.cpp')
-rw-r--r-- | libbacktrace/Corkscrew.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbacktrace/Corkscrew.cpp b/libbacktrace/Corkscrew.cpp index 8ba1e80..9daa752 100644 --- a/libbacktrace/Corkscrew.cpp +++ b/libbacktrace/Corkscrew.cpp @@ -37,7 +37,7 @@ bool CorkscrewCommon::GenerateFrameData( backtrace_frame_t* cork_frames, ssize_t num_frames) { if (num_frames < 0) { - ALOGW("CorkscrewCommon::GenerateFrameData: libcorkscrew unwind failed.\n"); + BACK_LOGW("libcorkscrew unwind failed."); return false; } @@ -184,7 +184,7 @@ std::string CorkscrewPtrace::GetFunctionNameRaw(uintptr_t pc, uintptr_t* offset) } //------------------------------------------------------------------------- -// C++ object createion functions. +// C++ object creation functions. //------------------------------------------------------------------------- Backtrace* CreateCurrentObj() { return new BacktraceCurrent(new CorkscrewCurrent()); |