diff options
Diffstat (limited to 'libbacktrace/UnwindCurrent.cpp')
-rw-r--r-- | libbacktrace/UnwindCurrent.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libbacktrace/UnwindCurrent.cpp b/libbacktrace/UnwindCurrent.cpp index 67e583f08..666c481ce 100644 --- a/libbacktrace/UnwindCurrent.cpp +++ b/libbacktrace/UnwindCurrent.cpp @@ -70,6 +70,7 @@ bool UnwindCurrent::UnwindFromContext(size_t num_ignore_frames, ucontext_t* ucon int ret = unw_getcontext(&context_); if (ret < 0) { BACK_LOGW("unw_getcontext failed %d", ret); + error_ = BACKTRACE_UNWIND_ERROR_SETUP_FAILED; return false; } } else { @@ -81,6 +82,7 @@ bool UnwindCurrent::UnwindFromContext(size_t num_ignore_frames, ucontext_t* ucon int ret = unw_init_local(cursor.get(), &context_); if (ret < 0) { BACK_LOGW("unw_init_local failed %d", ret); + error_ = BACKTRACE_UNWIND_ERROR_SETUP_FAILED; return false; } |